Hi Elastic Community!
I am testing out Alerting from Kibana within Elasticsearch 7.7 (feature currently in Beta).
Does anyone know if it is possible to pull specific field information from an Index when an alert, setup in Kibana, is triggered?
The only fields I can access are the following:
{{alertName}}
{{alertId}}
{{alertName}}
{{spaceId}}
{{tags}}
{{alertInstanceId}}
{{context.message}}
{{context.title}}
{{context.group}}
{{context.date}}
{{context.value}}
I believe this is done using mustache (mustache(5) - Logic-less templates.) but I can't seem to find out what context/template Kibana has available to it to populate the above.
Example:
I would like to setup an alert based on metricbeat data:
IF
INDEX metricbeat*
WHEN average()
OF system.filesystem.used.pct
OVER all documents
IS ABOVE 0.95
FOR THE LAST 60 seconds
Send an email of:
Alert {{alertName}}!
Server {{agent.name}} has used {{context.value}} percent of storage!
Summary:
{{system.filesystem.device_name}},
{{system.filesystem.total}}
{{system.filesystem.used.bytes}}
{{system.filesystem.available}}{{system.filesystem.used.pct}}
Kind Regards,
Kibana
Kind Regards,
SJ