-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Duplicate logs getting created on Opensearch through fluentd #4420
Comments
Requesting for a quick solution. |
@SohailLS Sorry for my late response. https://medium.com/redbox-techblog/tuning-fluentd-retries-avoiding-duplicate-documents-in-elasticsearch-e7cb9630a453 says retrying can cause duplication. If so, one thing that could be done on the Fluentd itself (not You can set <match xxx>
...
<buffer xxx>
...
retry_max_times 0
</buffer>
</match> Or, you can also have it sent to a secondary just in case. <match xxx>
...
<buffer xxx>
...
retry_type periodic
retry_max_times 3
retry_secondary_threshold 0.1
retry_randomize false
</buffer>
<secondary>
...
</secondary>
</match> |
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 7 days |
This issue was automatically closed because of stale in 7 days |
Describe the bug
Hi Team,
fluentd is generating logs 5 times on Opensearch.
We have tried implementing below solution with "elasticsearch_genid" and its even able to generate _hash values.... but its not able to remove the duplicates.
https://medium.com/redbox-techblog/tuning-fluentd-retries-avoiding-duplicate-documents-in-elasticsearch-e7cb9630a453.
logs flow is as below
fluentbit -> fluentd -> Opensearch
Earlier we were having only fluent-bit and it was working fine.
After introducing fluentd for multiple log files we started facing the issue.
Please advise.
To Reproduce
Please use the attached configs for fluent-bit and fluentd to reproduce the issue.
3ds-fluentbit.txt
td-agent.txt
Expected behavior
Single logs should get reported on the Opensearch end.
Your Environment
Your Configuration
Your Error Log
Additional context
No response
The text was updated successfully, but these errors were encountered: