Create Watcher Elastic

Good morning,
I would like to create a watcher in elasticsearch.
I have a python function that needs two input parameters. The goal is that every time a new document arrives at an index, this watcher automatically executes the python script with the parameters found in the new document that reaches the index.
I understand that from the function I could create a rest api service that calls the script but I don't know how I could pass the document parameters every time a new document arrives. It could also be activated from time to time but then you would have to check to see if the python script was already executed with the parameters of the last document.

Watcher cannot directly execute an arbitrary binary on a system. It can only interact with a Webhook, which then could call your python script. Watcher could pass any payload necessary to that Webhook.

Or you could investigate the other action options

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