Skip to content
Novus Examples
log1.3 KB

Syslog RFC 5424 — Structured Data Elements (log)

Five RFC 5424 syslog messages with the version digit, a full RFC 3339 timestamp and two structured-data elements per line — including one carrying the trace ID from this category's trace fixtures. The modern syslog most parsers still handle as if it were RFC 3164.

Preview — first 6 lineslog
<134>1 2026-03-17T09:14:32.850Z node-a1 checkout-api 4211 ID47 [origin@32473 ip="192.0.2.11" software="checkout-api" swVersion="1.14.2"][shop@32473 env="staging" trace_id="4bf92f3577b34da6a3ce929d0e0e4736" severity="info"] POST /api/checkout completed status=201 duration=148ms
<132>1 2026-03-17T09:14:33.470Z node-a1 checkout-api 4211 ID48 [origin@32473 ip="192.0.2.11" software="checkout-api" swVersion="1.14.2"][shop@32473 env="staging" trace_id="4bf92f3577b34da6a3ce929d0e0e4736" severity="warn"] downstream call took 71ms, budget is 50ms
<131>1 2026-03-17T09:14:34.090Z node-a1 payments-api 7452 ID49 [origin@32473 ip="192.0.2.11" software="payments-api" swVersion="3.1.4"][shop@32473 env="staging" trace_id="4bf92f3577b34da6a3ce929d0e0e4736" severity="error"] upstream POST /v1/charges timed out after 2.0s
<134>1 2026-03-17T09:14:34.710Z node-a1 cart-api 1180 ID50 [origin@32473 ip="192.0.2.11" software="cart-api" swVersion="0.9.7"][shop@32473 env="staging" trace_id="4bf92f3577b34da6a3ce929d0e0e4736" severity="info"] cache warmed keys=1284
<129>1 2026-03-17T09:14:35.330Z node-a1 inventory-api 990 ID51 [origin@32473 ip="192.0.2.11" software="inventory-api" swVersion="2.3.0"][shop@32473 env="staging" trace_id="4bf92f3577b34da6a3ce929d0e0e4736" severity="alert"] stock reservation queue depth exceeded 10000

Specifications

Lines
5
Version
1
Structured Data Elements
2
Priorities Used
129, 131, 132, 134
Has Trace Id In Sd
true
Facility
16
Note
RFC 3164 BSD syslog ships separately under data/logs

Testing contract

Expected to pass
Scenario
Parse each line and decode the PRI value and structured data.
Expected result
PRI 131 decodes to facility 16 severity 3 (error), both SD-IDs are extracted per line as separate elements, and the trace_id parameter is available for correlation.

What is a .log file?

LOG files are plain-text records of events emitted by software, typically one entry per line with a timestamp, severity, and message. There is no single standard, so formats range from unstructured text to structured JSON lines. They are central to debugging, monitoring, and auditing.

How to use this file

Use an example LOG file to test log parsers, timestamp and severity extraction, line-oriented streaming, and ingestion into monitoring or analysis pipelines.

How to use this file for testing

“Syslog RFC 5424 — Structured Data Elements (log)” is a deterministic Novus Examples fixture for Observability, Log parsing, Config parsing. Structured and plain-text telemetry with known timestamps, levels, request identifiers, and error states for testing log ingestion, correlation, dashboards, and alert pipelines.

Documented properties for this file: LOG · 1,319 bytes. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Telemetry fixtures use fixed trace IDs, span IDs, and timestamps so ingestion is reproducible run to run. Point your collector, parser, or query layer at the file and assert the documented span tree, metric families, or severity mix; service and host names are invented.

Code examples

grep -i error syslog-rfc5424.log | head
awk '{print $1, $2, $NF}' syslog-rfc5424.log | head

Generated by generation/observability.py. Free for any use, no attribution required — license.