Command-line action from watcher

Is it possible to trigger a command-line script from watcher action ?
We have scripts that send alert to a ticketing system , I am trying to see if there is any way t trigger this script from watcher and pass parameters ?

Because of the Java Security Manager in Elasticsearch it is not possible to spawn external processes.

You could however work around this by using a watcher webhook action, that sends data to logstash and its http input, which then executes your script using the exec output

Hope this helps!

1 Like

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