How to display a parameter that is appearing in the logs in an email?

Hi there,

I am currently working with Watcher on Kibana. Is there any way to access and display a parameter that's appearing in my server logs? For ex: In the logs, one of the parameters is "Hostname". I'd like to display this in the email. How do I do that in the script?

It would help tremendously if you shared your watch. You can display anything that is part of the input in the email, you can use the mustache notation to access values like ctx.payload.hits.hits.0._source.some_value to access the field of the first search result.

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