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

Problem with chunks/times? #1

Open
digitalsanity opened this issue Mar 4, 2020 · 0 comments
Open

Problem with chunks/times? #1

digitalsanity opened this issue Mar 4, 2020 · 0 comments

Comments

@digitalsanity
Copy link

digitalsanity commented Mar 4, 2020

There is an issue with fluent-bit storage.max_chunks_up > 1 (default is 128) and larger streams -- the chunks all come in with the same timestamp (microseconds difference) so you end up overwriting the same object in S3 and losing data.

{"fields":{},"level":"info","timestamp":"2020-03-04T07:17:43.618121481Z","message":"Successfully wrote s3://ingest.test/new/test6/20200304/7/20200304071743_ingest.test.log"}
{"fields":{},"level":"info","timestamp":"2020-03-04T07:17:43.689532265Z","message":"Successfully wrote s3://ingest.test/new/test6/20200304/7/20200304071743_ingest.test.log"}
{"fields":{},"level":"info","timestamp":"2020-03-04T07:17:43.785056959Z","message":"Successfully wrote s3://ingest.test/new/test6/20200304/7/20200304071743_ingest.test.log"}
{"fields":{},"level":"info","timestamp":"2020-03-04T07:17:43.86481822Z","message":"Successfully wrote s3://ingest.test/new/test6/20200304/7/20200304071743_ingest.test.log"}

Fix is changing timestamp in GenerateObjectKey to:
timestamp := t.Format("20060102150405.0000")

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

No branches or pull requests

1 participant