-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add the write_operation and upsert mode of the ES Fluentd plugin #1430
Comments
That's actually a great idea. I wanted to do a similar setup before but failed because fluent-bit does not support upsert mode. So ends up I am still using Filebeat+Logstash. |
Since I am not familiar with all the details of Elasticsearch; from a Fluent Bit perspective, this means you would like an option kind of "Upsert True" and then the request uses the Upsert header in the payload ? |
Yep. Also, it should allow the user to specify an existing field to be used as the e.g. After going through FluentBit with upsert mode, they come one single document in elasticsearch By searching for documents that have startTime without endTime, administrators can easily know which queries are still running. |
Hi @edsiper, |
This could still be useful in order to take advantage of ES 7.9 Data Streams which only support the create write_operation. |
Is your feature request related to a problem? Please describe.
We are migrating from Logstash to Fluent Bit.
Our system is generating a log when a query start and when a query ends. The logs are pushed to ElasticSearch. The logs are processed asynchronously so we cannot ensure the order in which they are handled by Logstash. We are generating our own ES document_id and writing to ES using the update action and an upsert script. This way, we end up with an ES entry holding 2 timestamps. We monitor the status of the running queries (entries in ES having a start timestamp but no end timestamp) in a Grafana dashboard.
Currently the ES output plugin only provide an insert action.
Describe the solution you'd like
I would like Fluent Bit handling the update and upsert mode.
Describe alternatives you've considered
The Fluentd ES plugin allows to choose the write operation, which could be either update or upsert.
Additional context
This is a current limitation that removes a current feature provided by our system.
The text was updated successfully, but these errors were encountered: