How to customize the record information before inserting into elastalert_status_silence index?
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
Hi,
Any comments on this please?
Thanks, Sudhakar
I dont believe this can be done without making changes to the code
@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?