Can Watcher execute external script upon alert?

alerting

(Tal Bar Or) #1

Hi All,
I would like to use Watcher to execute external script on alert condition is it possible?
If yes if can i get reference link to how to
Please advice
Thanks


(Mark Walkom) #2

Not currently, no.


(Elk User) #3

When will Watcher be able to execute external scripts upon alert? I have a similar requirement - and would like Watcher to execute a remote script when a certain alert condition occurs.


(Alexander Reelsen) #4

Watcher runs in the same sandbox as Elasticsearch does, with the java security manager enabled to prevent random reads/writes of files as well as executing any code (and many many more things to improve security). This is the reason, why you need another (hopefully more compartmentalized) component to execute scripts and use the webhook (or an index action) to trigger that.

--Alex


(Elk User) #5

Thank you, Alex - I will pursue the webhook route.


(system) #6