-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[receiver/filelog] names of files are printed repeatedly to stdout
#39414
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
Closed
andrzej-stencel opened this issue
Apr 15, 2025
· 1 comment
· Fixed by #39413 or microsoft/azl-otel-collector#9
Closed
[receiver/filelog] names of files are printed repeatedly to stdout
#39414
andrzej-stencel opened this issue
Apr 15, 2025
· 1 comment
· Fixed by #39413 or microsoft/azl-otel-collector#9
Labels
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
stdout
atoulme
pushed a commit
to atoulme/opentelemetry-collector-contrib
that referenced
this issue
Apr 15, 2025
atoulme
added a commit
that referenced
this issue
Apr 15, 2025
Fixes #39414. This applies the fix to the release branch in preparation of 0.124.1. Co-authored-by: Andrzej Stencel <[email protected]>
akshays-19
pushed a commit
to akshays-19/opentelemetry-collector-contrib
that referenced
this issue
Apr 23, 2025
basti1302
added a commit
to dash0hq/dash0-operator
that referenced
this issue
Apr 24, 2025
To include the fix for open-telemetry/opentelemetry-collector-contrib#39414 (excessive printing of file names).
basti1302
added a commit
to dash0hq/dash0-operator
that referenced
this issue
Apr 24, 2025
To include the fix for open-telemetry/opentelemetry-collector-contrib#39414 (excessive printing of file names).
Fiery-Fenix
pushed a commit
to Fiery-Fenix/opentelemetry-collector-contrib
that referenced
this issue
Apr 24, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Component(s)
receiver/filelog
What happened?
When using the File Log receiver in
v0.124.0
, the collector prints out tostdout
each tracked file's name, on every poll interval (200ms by default). This means that if the File Log receiver is tracking 3 files, 3 * 5 = 15 lines containing the names of the files will be printed tostdout
every second (5 lines for each file).Steps to Reproduce
Expected Result
File names "logs.log", "logs.json", "logs.txt" are not printed to console output.
Actual Result
File names "logs.log", "logs.json", "logs.txt" are printed to console output on every poll (200ms by default).
Collector version
v0.124.0
OpenTelemetry Collector configuration
Log output
Additional context
Caused by this line: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.124.0/pkg/stanza/fileconsumer/internal/reader/reader.go#L185
Introduced in #39373.
Workaround
The file names are printed to
stdout
and the collector's logs are printed tostderr
by default. This means redirectingstdout
is a workaround:The text was updated successfully, but these errors were encountered: