How to check if a document was successfully insert into elasticsearch


#1

Hello,
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?
thx


(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.


#3

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.


#5

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.