2024-09-03 20:12:05 +02:00
|
|
|
exporters:
|
|
|
|
syslog:
|
|
|
|
network: tcp
|
|
|
|
endpoint: victorialogs
|
|
|
|
port: 5410
|
|
|
|
tls:
|
|
|
|
insecure: true
|
|
|
|
debug:
|
|
|
|
verbosity: detailed
|
|
|
|
processors:
|
|
|
|
transform:
|
|
|
|
log_statements:
|
|
|
|
- context: log
|
|
|
|
statements:
|
|
|
|
- set(attributes["message"], body)
|
|
|
|
receivers:
|
|
|
|
filelog:
|
|
|
|
include: [/tmp/logs/*.log]
|
|
|
|
service:
|
2024-09-27 14:38:39 +02:00
|
|
|
telemetry:
|
|
|
|
metrics:
|
|
|
|
readers:
|
|
|
|
- periodic:
|
|
|
|
interval: 5000
|
|
|
|
exporter:
|
|
|
|
otlp:
|
|
|
|
protocol: http/protobuf
|
|
|
|
endpoint: http://victoriametrics:8428/opentelemetry/api/v1/push
|
2024-09-03 20:12:05 +02:00
|
|
|
pipelines:
|
|
|
|
logs:
|
|
|
|
receivers: [filelog]
|
|
|
|
exporters: [syslog, debug]
|
|
|
|
processors: [transform]
|