Query Another Index with an Enhancement in ElastAlert 2 #1590
Replies: 4 comments
-
I've never tried to do that so I don't know how easy it will be to do this. However, assuming you can get it to work you're likely going to find that this is very inefficient. Suppose your rule detects 1000 matches in the last timeframe and triggers the alert. It's going to loop over all of those matches and execute that additional Elasticsearch query. |
Beta Was this translation helpful? Give feedback.
-
I want to enrich the current alert with additional information from another index. For example, the original alert might not include user.name, but I can extract this information by querying another index using matching values from the original alert. The Elasticsearch query can be updated to be more specific, ensuring it retrieves only the relevant result. |
Beta Was this translation helpful? Give feedback.
-
Can ElastAlert2 enhancements interact with external APIs or other services to enrich alerts? For example, if the alert lacks a specific field (like user.name), could an enhancement query an external API or service, retrieve the necessary information, and include it in the alert? I wonder if there's support for external integrations or if there are any known limitations ? |
Beta Was this translation helpful? Give feedback.
-
It's just python code. You can make it do whatever you want it to do. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have a rule where the index logs-test-* contains the
endpoint
name, but it does not includeuser.name
. Can I use an enhancement to query another index to extractuser.name
?In
alert_text
i add 'enrich_user.name':and I created enhacmenet:
Do the elastalert2 support these type of enchamenet ?
Beta Was this translation helpful? Give feedback.
All reactions