LinkMesh

Search docs, blog and changelog

ENDE

Snippets

Parse logs with the OpenTelemetry Collector (10)

A log line only becomes useful once its fields are fields: a timestamp the backend can sort on, a severity it can filter on, the status code and path as attributes instead of one long string.

These configs parse JSON, key-value pairs, nginx, Apache and IIS access logs and syslog, and set the timestamp and severity from the line itself. Each shows the input line, the config and the parsed record. For multiline events and the messier cases, read our guide to parsing messy logs.