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

FileReader - Data loss when tailing symlink file with log rotation (k8s container logs) #2946

Closed
rockb1017 opened this issue Mar 31, 2021 · 2 comments
Assignees
Labels
bug Something isn't working spec:logs

Comments

@rockb1017
Copy link
Contributor

rockb1017 commented Mar 31, 2021

Describe the bug
When I do performance test, I see 98~99% ingest rate.
with log generator EPS 5000, i see 98.6% ingest rate.
with EPS 3300, I see 99.3%
with EPS 2500, I see 99.1%
So even though I reduce EPS significantly (from 5000 to 2500), I still see some data loss.
So I looked into data loss pattern.

image

Each row, i should have 100000 event, but data loss is happening throughout the ingestion.
Drilling further down,
image

image

image
and I confirm a block from 545800 to 545913 is missing.
I think this pattern can be explained that this happens with log rotation.

I am not sure if it will happen if I were to tail files directly instead of tailing a symlink file to the actual log file.

Regardless, we need filereader to continue to tail it's been tailing, then begin following a new file upon discovering file rotation.

What version did you use?
Version: 0.22.0

What config did you use?
Config:

Environment
Docker imasge

@rockb1017 rockb1017 added the bug Something isn't working label Mar 31, 2021
@tigrannajaryan tigrannajaryan added this to the Basic Logs Support milestone Mar 31, 2021
@tigrannajaryan
Copy link
Member

@djaglowski can you please have a look?

@djaglowski
Copy link
Member

Resolved by opentelemetry-log-collection#182, and included in collector contrib release 0.29.0

alexperez52 referenced this issue in open-o11y/opentelemetry-collector-contrib Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working spec:logs
Projects
None yet
Development

No branches or pull requests

3 participants