My issue also similar to this topic but I am not using any advance query, I can see my threshold query is executing but I want to see the host name in email subject
I want to see email notification as Watch [Disk space] has exceeded the threshold on AWSN
Here is my email subject ( I tried couple of things like below)
Watch [{{ctx.metadata.name}}] has exceeded the threshold on [{{ctx.payload.aggregations.beat.hostname}}]
Watch [{{ctx.metadata.name}}] has exceeded the threshold on [{{ctx.payload.beat.hostname}}]
Watch [{{ctx.metadata.name}}] has exceeded the threshold on [{{ctx.payload.beat.name}}]
Please help me to figure what I am missing to get hostname in email?
Thanks @spinscale I found the solution what I need from the community here but would like to know is there a way that I can see alerts for specific hosts with wildcard?, I have a multiple servers but I want to watch specifically on my AD servers.
if you have a certain hostname scheme, you could use a prefix query in your watch that searches for ldap- in the hostname field (or sth similar), and thus find all the LDAP servers.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.