Watcher Logging

alerting

#1

I am currently working on a webhook into Nagios to update status. I believe the URL is getting correctly created however I cannot find how to turn on debugging in Watcher or where Watcher is logging anything to see. I am looking at the ES index .watch_history* in Kibana but it doesn't show the URL anywhere.

Does anyone know how I can see any Watcher logging or how to turn debugging on for it?

Any help is appreciated


(Martijn Van Groningen) #2

You can use the history indices as a tool to debug.

The history index will contain many history events and you should first find out which history events matched the condition you have set up. Otherwise the configured actions will not even execute.

You can do this by filtering via setting the following query:
result.condition.met: true

You can then check if the following field exists in these documents:
result.actions.webhook.request

What also is useful if you have more watches running is also filter down by the watch id you like to debug:
watch_id: [your_watch_id]


(system) #3