UNABLE TO UPDATE THE DOCUMENT USING MONGODB LOGSTASH PLUGIN

Hi,

I am trying to migrate the data using logstash mongodb plugin .. I am able to migrate the data but it is failing while updating the data in mongo db as it is creating a new document while i am trying to append or update any field. I tried by creating a unique key also but still it is giving me duplicate id error eg.

[2020-09-28T10:41:00,459][WARN ][logstash.outputs.mongodb ][patient_pipeline] Skipping insert because of a duplicate key error {:event=>#LogStash::Event:0x6dee11af, :exception=>#<Mongo::Error::OperationFailure: E11000 duplicate key error collection: lzocsp.Patient index: id_primary dup key: { : "70413" } (11000)>}

Is the MongoDB plugin provide the feature to update the record from DB??

Thanks

I do not think so, it only does inserts.

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