Closed newly12 closed 5 months ago
Pinging code owners:
%s See Adding Labels via Comments if you do not have permissions to add labels yourself.
matcher
is initialized with TopN
to be 0
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.99.0/pkg/stanza/fileconsumer/matcher/matcher.go#L79-L85
when matching happens, it returns result[:0]
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.99.0/pkg/stanza/fileconsumer/matcher/matcher.go#L186
I think ordering_criteria
and exclude_older_than
should be working independently, say I've cases only want to filter old logs, all new logs should be read.
Removing needs triage
based on code owner's approval of the PR.
Hey @newly12 , since https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/32683 is merged can we consider this one as fixed?
Resolved by #32683
Component(s)
pkg/stanza
What happened?
Description
When enable
exclude_older_than
in filelog receiver without anyordering_criteria
configs, no files are being scraped regardless it is new file or old files.Steps to Reproduce
ordering_criteria
Expected Result
files newer than this should be scraped
Actual Result
no files are scraped
Collector version
v0.99.0
Environment information
Environment
OS: MacOS Compiler(if manually compiled): go 1.21
OpenTelemetry Collector configuration
Log output
Additional context
log file is created just before starting otel collector