Is possible to listen index changes?

I need to 'listen' for changes on my index, at first I started by writing a script in nodejs which is executed every 5min. For now I think it works... But can I do it in realtime? When a new document is insert or update.

I have read about watchers, but it's same than my actual script. Any advice or alternative to do it?

Hi @thewasta

Today there is no "listener" or "observer" mechanism to alert on new documents inserted into an index in Elasticsearch.

Both watcher (legacy) and the new Kibana Alerting Framework are poll based mechanisms

Just an FYI, this is the current feature request for this. In case you want to track it.