Please help me to detect addition of new document in the elasticsearch (@elastic/elasticsearch nodejs plugin) (from logstash) and have to trigger javascript function
As far as I know that is not possible. You can however have an ingest pipeline run for each inserted document which will allow you to modify the document. Another option might be do do this in Logstash before ingesting the document. What is it you are looking to achieve using this function?
Hi @Christian_Dahlqvist thanks for prompt response. Though I need to implement listener for record insert & update in the elasticsearch index in my node js application to sent acknowledgment/message in realtime. Please suggest on this.
As far as I know there is no support for this in Elasticsearch so you may need to address this at the point when you are indexing the data, e.g. through custom Logstash config or a custom version of the Elasticsearch output plugin.