-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Unable to Filter the logs by EVENT ID #34306
Comments
Pinging code owners: See Adding Labels via Comments if you do not have permissions to add labels yourself. |
waiting-for-author |
I will try to repro it later today. |
/label os:windows |
The issue is due to incorrect specification of the filter, the following configuration works: receivers:
windowseventlog:
channel: Microsoft-Windows-TaskScheduler/Operational
attributes: {"service":"otel","source":"windows_event"}
start_at: end
operators:
- type: filter
expr: 'body.EventID == "102"'
- type: retain
fields:
- body.event_id.id
exporters:
debug:
verbosity: detailed
service:
pipelines:
logs:
receivers: [windowseventlog]
exporters: [debug] @djaglowski any suggestions on how to make the the operators expression more discoverable? @open-telemetry/collector-contrib-triagers this issue can be closed. |
Component(s)
receiver/windowseventlog
Describe the issue you're reporting
I have enabled the Windows Event Log receiver in the OTel collector. I'm unable to filter to only include the event logs coming from Event ID: 102.
waiting-for-author
config.yaml
The text was updated successfully, but these errors were encountered: