-
Notifications
You must be signed in to change notification settings - Fork 77
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 1.5.4: mongodb output plugin support for update with $set operator #16
Comments
Hi all, I'm using the HTTP input plugin to receive HTTP POST/PATCH requests, and would like to map the PATCH in the mongodb output plugin to an update on an existing document based on the $set operator. I'm not familiar with Ruby, but checking the latest mongodb.rb, it looks like only insert_one() is used. Are there any plans to support update_one() or other mechanisms to update an existing Mongo document? |
@stevecalvert - In general the LS outputs are append only. Consider this blog article from LinkedIn. You turn your collection into a journal showing how the document changed over time. |
@guyboertje on the other hand, we support |
@stevecalvert @jordansissel - in Mongo we could use update with the upsert option. https://docs.mongodb.org/manual/reference/method/db.collection.update/#upsert-parameter
|
Has this been ruled out as something that will be added? I'm needing upsert functionality for a project I'm working on so I'm evaluating options. This plugin works great but I need some way to handle a record getting sent thru with an update.... |
Hi, Is there any update on this issue ? |
@joelpermanas any update will be publicly visible here. PR contributions are welcome :) |
I would like to have this feature also, please. Thank you for the great product. |
Did anybody start with an implementation or plans to do so? |
I am implementing this and I plan to use these config flags:
Where action may be one of
Where Any comments? Suggestions? |
I opened a PR for this (see above). Could anybody please take a look and let me know whether my changes make sense for you, too? |
has there been any traction on this? 7+ years open, PR request pending almost 3 years now... |
Up! |
No description provided.
The text was updated successfully, but these errors were encountered: