Im trying to use the ctx.results[0].hits.total variable as a part of the message of the triggered alert. I have added the alert message content as below
Hi,
An event has occured.
Duration:
from: {{ctx.periodStart}}
to: {{ctx.periodEnd}}
count : {{ctx.results[0].hits.total}}
Thanks,
The total hits is blank in the generated alert message. Please let me know how I can get the total hits in the alert message. Thanks!
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.