systemd journald
Read the journal with your own OpenTelemetry Collector (contrib) running on the host. The receiver shells out to journalctl, so it must be on the PATH and the collector user must be able to read the journal (group systemd-journal). Needs an ingestion key with ingest:logs; set WT_OTLP_ENDPOINT and WT_INGEST_KEY.
receivers:
journald:
directory: /var/log/journal
units: [ssh, nginx]
priority: info
processors:
batch: {}
exporters:
otlphttp:
endpoint: ${env:WT_OTLP_ENDPOINT}
headers:
Authorization: "Bearer ${env:WT_INGEST_KEY}"
service:
pipelines:
logs:
receivers: [journald]
processors: [batch]
exporters: [otlphttp]Omit units to read everything. Journal fields arrive as log attributes.
Updated