Custom messages using monitors in Kibana

Good afternoon :smiley:
I need some help.

I have an active monitor alert that works perfectly, but when the trigger is set, we get a simple email message from Kibana.

I assume that message can be customed using something called ā€œmoustacheā€ but to be honest, I don’t know how to do it.

This is my message right now:

Monitor {{ctx.monitor.name}} just entered alert status.
A KPI error in PRO has just arrived. Please check the dashboard in ā€œOperationsā€ tenant called ā€œDashboard_all_kpiā€

  • Trigger: {{ctx.trigger.name}}
  • Severity: {{ctx.trigger.severity}}
  • Period start: {{ctx.periodStart}}
  • Period end: {{ctx.periodEnd}}

But I would love to customize it a little bit. For example, in my logs I have lots of fields and it would be really helpful if I can add them to the message. For example, the trigger jumps when a filed called ā€œds_stateā€ result is ā€œfailedā€ more than 3 times per hour. I would like to the sending message to tell me how many times I got that result.

Or from what index pattern, or even include other fields that exist in the logs.

Any ideas?

Thanks!!!

Hello? Any ideas please?