I am using an Elasticsearch query, trying to send an alert based on FPS_MIN,
My query & conditions,
My problem is, that I got 39 hits, I am looping the hits result in alert action message section,
server.name value will be SERVER_1 to SERVER_n
{{#context.hits}}
- {{_source.server.name}} : {{_source.json.FPS_MIN}}
{{/context.hits}}
In the 39 iterations, I have the same server.name
, I don't want to show the same server.name
multiple times, Instead of that I want to show once, for each server.name
.
Currently, I have only one SERVER_1, In the future we might add more,
I need to make a group by my server.name like this,
FPS' is Dropping into 0:
- SERVER_1 : 0