Filtering the logs #1132
-
Hello, Thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
M4RC02U1F4A4
Feb 26, 2024
Replies: 1 comment 1 reply
-
It is possible to filter the logs by going to edit the configuration of OpenTelemtry Collector from here Below is an example of a conf that collects only logs beginning with agent:
config:
processors:
filter/severity_text:
logs:
include:
match_type: regexp
bodies:
- ^INFO
resource_attributes:
- key: k8s.container.name
value: test-log-container
service:
pipelines:
logs:
processors:
- memory_limiter
- k8sattributes
- filter/logs
- batch
- resourcedetection
- resource
- resource/logs
- resource/add_environment
- filter/severity_text |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
M4RC02U1F4A4
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is possible to filter the logs by going to edit the configuration of OpenTelemtry Collector from here
splunk-otel-collector-chart/helm-charts/splunk-otel-collector/values.yaml
Line 433 in 22aa7e4
Below is an example of a conf that collects only logs beginning with
INFO