Opensearch alerting trigger custom message

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):3.0.0

Describe the issue:I need to set up an alert and trigger and trigger message should contain some custom fields in the messege

currently set up per query monitor with visual editor and in custom messege field in notification

Host: {{_source.host}}
Host IP: {{_source.hostip}}

but the notification messege doesn’t contains any values, how can we fix it

Configuration:

Relevant Logs or Screenshots:

@sandeepm257 Try the below instead

Host: {{ctx.results.0.hits.hits.0._source.host}}
Host IP: {{ctx.results.0.hits.hits.0._source.hostip}}

Hi Pablo

Thanks for reply, still we are getting some syntax error