Ctx" variables in Alerts


I am trying to create an generic alert. I would like to send a message to my telegram bot. Currently I have this script:

{ "text": " {{ctx.monitor.name}}:
Please investigate the issue.

  • Severity: {{ctx.trigger.severity}}

In my index I have a field called "scanned_host". I am trying to add this field in this script. Is this possible? If yes, how?


I'm guessing this question is related to Watcher, as opposed to Kibana Alerting. Watcher questions are probably best asked in the Elasticsearch area of this Discuss site.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.