How to check if a document was successfully insert into elasticsearch


I'm using logstash to insert documents into ES, but i want to output in a file duplicated documents that ES failed to insert.
Is there a way to check if a document insert into ES was successfull through logstash?

(Magnus Bäck) #2

Why would insertions fail for duplicates? I'm not sure you're trying to solve the right problem so please elaborate on the scenario.


thanks for your fast reply. I'm trying to insert documents with specific id (for example the id is name+age).

(Magnus Bäck) #4

Okay, so you're using action => "create" in the elasticsearch output configuration? I don't think there's a way of catching those errors and redirecting the events elsewhere.


yes i'm using action => "create".

(system) #6

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