Unable to print Error message into a watcher alert


I want to print out the error message from my logs into my mail. However, its giving me this error.


Below is the alert jason code i am using:


Can you please help. I am new in elastic search and am trying to print out the error message from the logs.

Please refrain from using screenshots, but share via code snippets. Thanks!

The shown output is not enough to verify. Is it possible that you set size: 0 in your query and thus no hits are returned?

Please share the whole JSON from the execute watch API or the watch history otherwise. Thanks!

Thanks. Setting the size to 1 got me to print the first line of the Error message. Is there a way i can print the entire error log. For example a multi line java error

Can you share the output of the Execute Watch API?

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