Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logstash sync from Oracle to MongoDB (updating records) #26

Open
srinvas opened this issue Mar 4, 2016 · 3 comments
Open

Logstash sync from Oracle to MongoDB (updating records) #26

srinvas opened this issue Mar 4, 2016 · 3 comments

Comments

@srinvas
Copy link

srinvas commented Mar 4, 2016

We are using an pipeline file to sync data from oracle to mongo to perfom an update operation.
When logstash is pushing data to mongo we want logstash to do an db.collection.save() instead of db.collection.insert() as this an update operation the records should get updated instead of getting inserted newly.

Logstash by default is using db.collection().insert and pushing all the records. So this is causing an issue when "_id"(which is unique for an single doc) is same for two records mongo doesn't allow logstash to insert the record.

So is there any option available in output mongo plugin of logstash to prevent this issue.

@suyograo
Copy link
Contributor

suyograo commented Mar 4, 2016

@srinvas we'll gladly accept a PR for this change.

@srinvas
Copy link
Author

srinvas commented Mar 10, 2016

@suyograo when can we expect this change to be added to the output plugin.

@colinsurprenant
Copy link
Contributor

relates to #54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants