Detect update in Elastic index and call an action

Hello, I'd like to detect updates in my index (updated, created or deleted document) and call an Amazon API Gateway. First, I thought about using Watcher but it seems that I can't detect real time modifications in my index. Then, I thought about using a Logstash instance with 2 output : an elastic output and an http output. Would you have a best suggestion for this use case ?
Thanks in advance

I'd probably add a 3rd party layer in the middle like a Message Queue system.
Then you can indeed use Logstash to read the queue and output to Elasticsearch and to your system.

Another solution, very hacky, would be to create an ingest pipeline which can call the web service you want.
But lot of code to write, deal with security manager, and maintain it...

1 Like

Hi David :slight_smile: Thank you very much for your answer. Indeed, I think I will make two pipelines with two message queue services : one for creation and modification and another for deletions.

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