docker logs filter #7583
Unanswered
adarsh-paiteq
asked this question in
Q&A
Replies: 0 comments
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.
-
how to add log text label filter
receivers:
tcplog/docker:
listen_address: 0.0.0.0:2255
operators:
- type: regex_parser
regex: '^<([0-9]+)>[0-9]+ (?P[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(.[0-9]+)?([zZ]|([+-])([01]\d|2[0-3]):?([0-5]\d)?)?) (?P<container_id>\S+) (?P<container_name>\S+) [0-9]+ - -( (?P.*))?'
timestamp:
parse_from: attributes.timestamp
layout: '%Y-%m-%dT%H:%M:%S.%LZ'
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
hostmetrics:
collection_interval: 30s
scrapers:
cpu: {}
disk: {}
load: {}
filesystem: {}
memory: {}
network: {}
paging: {}
process:
mute_process_name_error: true
mute_process_exe_error: true
mute_process_io_error: true
processes: {}
filelog:
include: [ /var/log/*log ]
start_at: end
docker_stats:
endpoint: unix:///var/run/docker.sock
api_version: "1.45"
processors:
batch:
timeout: 10s
send_batch_size: 1000
batch/logs:
timeout: 1s
send_batch_size: 1
resourcedetection:
detectors: [env, system]
timeout: 2s
system:
hostname_sources: [os]
extensions:
health_check: {}
zpages: {}
exporters:
otlp:
endpoint: ":4317"
tls:
insecure: false
cert_file: /home/ubuntu/certs-otel/otel-certificate.crt
key_file: /home/ubuntu/certs-otel/otel-private.key
ca_file: /usr/local/share/ca-certificates/otel-certificate.crt
debug:
verbosity: "normal"
service:
telemetry:
metrics:
address: 0.0.0.0:8888
extensions: [health_check, zpages]
pipelines:
metrics:
receivers: [otlp, hostmetrics, docker_stats]
processors: [resourcedetection, batch]
exporters: [otlp]
Beta Was this translation helpful? Give feedback.
All reactions