-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
Description
Component(s)
pkg/stanza, pkg/stanza/fileconsumer
What happened?
Description
Some of the usages of
Process(context.Context, *entry.Entry) error |
Steps to Reproduce
Real config
filelog/fraud-detection-raw:
include:
- /var/log/pods/*/*/*.log
operators:
- id: container-parser
type: container
Why?
include_file_path: true
is missing - but is required unless you setadd_metadata_from_filepath: false
- exception:
return fmt.Errorf("type '%T' cannot be parsed as log path field", logPath)
Test
remove this line:
opentelemetry-collector-contrib/pkg/stanza/operator/parser/container/parser_test.go
Line 246 in 6395ff8
"log.file.path": "/var/log/pods/some_kube-scheduler-kind-control-plane_49cc7c1fd3702c40b2686ea7486091d3/kube-scheduler44/1.log", |
Expected Result
error is reported to user
Actual Result
error is silent - you just don't get log messages
Collector version
0.103.0
Environment information
No response
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response