Yeah, that's what query_key
option does in the definition. 🙂
So what this alert does is:
- Looking at the number of events based on the query in the
filter
section.
- From that pool it's dividing the documents based on the values of the field
data.win.eventdata.tagetUserName
. That's thanks to using option query_key
.
- It looks if the amount of documents PER VALUE of the field
data.win.eventdata.targetUserName
is greater than 100 (num_events
option) in 15 minutes timeframe (timeframe
option).
- If the number of documents is greater than the condition above (still - PER VALUE of the
query_key
field) then alerts get triggered.
If I understood correctly - that's what you're looking for, but if not, please let me know and I'm more than happy to help. 🙂