elastalert icon indicating copy to clipboard operation
elastalert copied to clipboard

How to customize the record information before inserting into elastalert_status_silence index?

Open skatakar opened this issue 7 years ago • 3 comments

Hi,

We are releartning events/records based on querykey : [“hostname” , “message”] . its working properly. We want to create kibana dashboard to visualize, how many events/records are inserted into main index and how many events/records are triggered (here I am using email) and how many events are silenced/suppressed in given time range?

I know we can get the total events from main index(here it is test_elastalert) and triggered events count from elastalert_status and silenced events from elastalert_status_silence index. But I want to apply filters on hostname. Means I have to add hostname field from the main event into record before inserting into elastalert_status and elastalert_status_silence. Can anyone please let me know how to add “hostname” filed in each record before inserting into elastalert_status and elastalert_status_silence indexes?

Thanks, Sudhakar

skatakar avatar Feb 06 '19 21:02 skatakar

Hi,

Any comments on this please?

Thanks, Sudhakar

skatakar avatar Feb 07 '19 19:02 skatakar

I dont believe this can be done without making changes to the code

thommor avatar Feb 08 '19 07:02 thommor

@Qmando / @thommor , Can you please let me know which file/method needs to be used for customizing the code to insert fields in elastalert_status_silence and elastalert_status index after parsing rules?

skatakar avatar Feb 08 '19 15:02 skatakar