Watcher alert with specific field

I have set a watcher alert

that is trigger when a field inside my index is over a threshold.
How can I integrate in my mail alert the value of another field in the index.

For example, a mail like:
The document with id=1 has a field X over threshold.

Hi @accateo,

I do not believe that the source documents are available using the threshold alert Watch that it looks like you are creating, but you should be able to create a custom watch for this. Here is the documentation for accessing search results directly using a custom watch: Watcher search input | Elasticsearch Guide [7.15] | Elastic. Please let me know if you are able to use this.


1 Like

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