Skip to content
Novus Examples
jsonl100.8 KB

Structured Application Log — 300 JSON Lines (jsonl)

Three hundred newline-delimited JSON log records from five services, each with a timestamp, level, logger, message, a nested http object and request and order identifiers. The severity mix is counted in the spec table, so a level filter can be asserted rather than eyeballed.

Preview — first 50 linesjsonl
{"ts":"2026-03-17T09:14:33.421Z","level":"error","service":"payments-api","version":"3.1.4","env":"staging","host":"node-b2","logger":"shop.payments.authorize","msg":"upstream payment provider timed out","http":{"method":"POST","route":"/api/checkout","status":502,"duration_ms":117.39},"request_id":"req-000001","order_id":"ord-2026-0317-005279","seq":1}
{"ts":"2026-03-17T09:14:33.721Z","level":"info","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.OrderController","msg":"request completed","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":216.07},"request_id":"req-000002","order_id":"ord-2026-0317-005441","seq":2}
{"ts":"2026-03-17T09:14:34.336Z","level":"warn","service":"inventory-api","version":"2.3.0","env":"staging","host":"node-b1","logger":"shop/inventory/reserve","msg":"reservation retried after conflict","http":{"method":"POST","route":"/api/orders","status":200,"duration_ms":198.31},"request_id":"req-000003","order_id":"ord-2026-0317-005439","seq":3}
{"ts":"2026-03-17T09:14:34.975Z","level":"info","service":"cart-api","version":"0.9.7","env":"staging","host":"node-a2","logger":"shop/cart/handler","msg":"request completed","http":{"method":"GET","route":"/api/cart","status":200,"duration_ms":106.77},"request_id":"req-000004","order_id":"ord-2026-0317-007161","seq":4}
{"ts":"2026-03-17T09:14:35.383Z","level":"info","service":"cart-api","version":"0.9.7","env":"staging","host":"node-a2","logger":"shop/cart/handler","msg":"request completed","http":{"method":"GET","route":"/api/cart","status":200,"duration_ms":385.46},"request_id":"req-000005","order_id":"ord-2026-0317-007836","seq":5}
{"ts":"2026-03-17T09:14:35.455Z","level":"info","service":"catalog","version":"0.0.1","env":"staging","host":"node-c1","logger":"shop/catalog/handler","msg":"request completed","http":{"method":"GET","route":"/api/catalog","status":200,"duration_ms":475.95},"request_id":"req-000006","order_id":"ord-2026-0317-002145","seq":6}
{"ts":"2026-03-17T09:14:35.484Z","level":"debug","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.PricingService","msg":"recomputed cart totals","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":239.05},"request_id":"req-000007","order_id":"ord-2026-0317-007783","seq":7}
{"ts":"2026-03-17T09:14:35.592Z","level":"warn","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.PricingService","msg":"slow downstream call","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":250.93},"request_id":"req-000008","order_id":"ord-2026-0317-009151","seq":8}
{"ts":"2026-03-17T09:14:36.141Z","level":"debug","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.PricingService","msg":"recomputed cart totals","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":86.2},"request_id":"req-000009","order_id":"ord-2026-0317-008417","seq":9}
{"ts":"2026-03-17T09:14:36.683Z","level":"info","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.OrderController","msg":"request completed","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":312.02},"request_id":"req-000010","order_id":"ord-2026-0317-003247","seq":10}
{"ts":"2026-03-17T09:14:36.813Z","level":"warn","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.PricingService","msg":"slow downstream call","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":92.23},"request_id":"req-000011","order_id":"ord-2026-0317-003010","seq":11}
{"ts":"2026-03-17T09:14:37.557Z","level":"debug","service":"cart-api","version":"0.9.7","env":"staging","host":"node-a2","logger":"shop/cart/cache","msg":"cache lookup","http":{"method":"GET","route":"/api/cart","status":200,"duration_ms":159.32},"request_id":"req-000012","order_id":"ord-2026-0317-009428","seq":12}
{"ts":"2026-03-17T09:14:38.442Z","level":"debug","service":"cart-api","version":"0.9.7","env":"staging","host":"node-a2","logger":"shop/cart/cache","msg":"cache lookup","http":{"method":"GET","route":"/api/cart","status":200,"duration_ms":357.71},"request_id":"req-000013","order_id":"ord-2026-0317-005757","seq":13}
{"ts":"2026-03-17T09:14:39.169Z","level":"warn","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.PricingService","msg":"slow downstream call","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":395.37},"request_id":"req-000014","order_id":"ord-2026-0317-006734","seq":14}
{"ts":"2026-03-17T09:14:39.174Z","level":"info","service":"cart-api","version":"0.9.7","env":"staging","host":"node-a2","logger":"shop/cart/handler","msg":"request completed","http":{"method":"GET","route":"/api/cart","status":200,"duration_ms":67.24},"request_id":"req-000015","order_id":"ord-2026-0317-007911","seq":15}
{"ts":"2026-03-17T09:14:39.989Z","level":"info","service":"notifier","version":"0.4.11","env":"staging","host":"node-c1","logger":"@example/shop-notifier","msg":"notification dispatched","http":{"method":"GET","route":"/healthz","status":200,"duration_ms":401.35},"request_id":"req-000016","order_id":"ord-2026-0317-003052","seq":16}
{"ts":"2026-03-17T09:14:40.262Z","level":"info","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.OrderController","msg":"request completed","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":328.43},"request_id":"req-000017","order_id":"ord-2026-0317-006547","seq":17}
{"ts":"2026-03-17T09:14:40.612Z","level":"warn","service":"inventory-api","version":"2.3.0","env":"staging","host":"node-b1","logger":"shop/inventory/reserve","msg":"reservation retried after conflict","http":{"method":"POST","route":"/api/orders","status":200,"duration_ms":32.33},"request_id":"req-000018","order_id":"ord-2026-0317-009633","seq":18}
{"ts":"2026-03-17T09:14:41.453Z","level":"info","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.OrderController","msg":"request completed","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":393.45},"request_id":"req-000019","order_id":"ord-2026-0317-004903","seq":19}
{"ts":"2026-03-17T09:14:41.887Z","level":"info","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.OrderController","msg":"request completed","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":357.63},"request_id":"req-000020","order_id":"ord-2026-0317-005917","seq":20}
{"ts":"2026-03-17T09:14:42.359Z","level":"info","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.OrderController","msg":"request completed","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":209.61},"request_id":"req-000021","order_id":"ord-2026-0317-005557","seq":21}
{"ts":"2026-03-17T09:14:43.136Z","level":"warn","service":"inventory-api","version":"2.3.0","env":"staging","host":"node-b1","logger":"shop/inventory/reserve","msg":"reservation retried after conflict","http":{"method":"POST","route":"/api/orders","status":200,"duration_ms":458.1},"request_id":"req-000022","order_id":"ord-2026-0317-006765","seq":22}
{"ts":"2026-03-17T09:14:43.422Z","level":"warn","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.PricingService","msg":"slow downstream call","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":466.21},"request_id":"req-000023","order_id":"ord-2026-0317-004095","seq":23}
{"ts":"2026-03-17T09:14:44.145Z","level":"error","service":"inventory-api","version":"2.3.0","env":"staging","host":"node-b1","logger":"shop/inventory/reserve","msg":"insufficient stock for reservation","http":{"method":"POST","route":"/api/orders","status":409,"duration_ms":277.11},"request_id":"req-000024","order_id":"ord-2026-0317-001318","seq":24}
{"ts":"2026-03-17T09:14:44.973Z","level":"error","service":"payments-api","version":"3.1.4","env":"staging","host":"node-b2","logger":"shop.payments.authorize","msg":"upstream payment provider timed out","http":{"method":"POST","route":"/api/checkout","status":502,"duration_ms":185.62},"request_id":"req-000025","order_id":"ord-2026-0317-003596","seq":25}
{"ts":"2026-03-17T09:14:45.235Z","level":"info","service":"notifier","version":"0.4.11","env":"staging","host":"node-c1","logger":"@example/shop-notifier","msg":"notification dispatched","http":{"method":"GET","route":"/healthz","status":200,"duration_ms":149.97},"request_id":"req-000026","order_id":"ord-2026-0317-008919","seq":26}
{"ts":"2026-03-17T09:14:45.438Z","level":"info","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.OrderController","msg":"request completed","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":109.68},"request_id":"req-000027","order_id":"ord-2026-0317-007446","seq":27}
{"ts":"2026-03-17T09:14:45.841Z","level":"warn","service":"inventory-api","version":"2.3.0","env":"staging","host":"node-b1","logger":"shop/inventory/reserve","msg":"reservation retried after conflict","http":{"method":"POST","route":"/api/orders","status":200,"duration_ms":423.82},"request_id":"req-000028","order_id":"ord-2026-0317-009146","seq":28}
{"ts":"2026-03-17T09:14:45.858Z","level":"info","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.OrderController","msg":"request completed","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":303.32},"request_id":"req-000029","order_id":"ord-2026-0317-002792","seq":29}
{"ts":"2026-03-17T09:14:46.318Z","level":"debug","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.PricingService","msg":"recomputed cart totals","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":388.83},"request_id":"req-000030","order_id":"ord-2026-0317-006549","seq":30}
{"ts":"2026-03-17T09:14:46.900Z","level":"info","service":"notifier","version":"0.4.11","env":"staging","host":"node-c1","logger":"@example/shop-notifier","msg":"notification dispatched","http":{"method":"GET","route":"/healthz","status":200,"duration_ms":328.98},"request_id":"req-000031","order_id":"ord-2026-0317-008740","seq":31}
{"ts":"2026-03-17T09:14:47.774Z","level":"debug","service":"cart-api","version":"0.9.7","env":"staging","host":"node-a2","logger":"shop/cart/cache","msg":"cache lookup","http":{"method":"GET","route":"/api/cart","status":200,"duration_ms":394.39},"request_id":"req-000032","order_id":"ord-2026-0317-003664","seq":32}
{"ts":"2026-03-17T09:14:48.358Z","level":"info","service":"cart-api","version":"0.9.7","env":"staging","host":"node-a2","logger":"shop/cart/handler","msg":"request completed","http":{"method":"GET","route":"/api/cart","status":200,"duration_ms":226.18},"request_id":"req-000033","order_id":"ord-2026-0317-004977","seq":33}
{"ts":"2026-03-17T09:14:48.470Z","level":"debug","service":"cart-api","version":"0.9.7","env":"staging","host":"node-a2","logger":"shop/cart/cache","msg":"cache lookup","http":{"method":"GET","route":"/api/cart","status":200,"duration_ms":119.17},"request_id":"req-000034","order_id":"ord-2026-0317-009948","seq":34}
{"ts":"2026-03-17T09:14:48.880Z","level":"error","service":"inventory-api","version":"2.3.0","env":"staging","host":"node-b1","logger":"shop/inventory/reserve","msg":"insufficient stock for reservation","http":{"method":"POST","route":"/api/orders","status":409,"duration_ms":165.1},"request_id":"req-000035","order_id":"ord-2026-0317-009743","seq":35}
{"ts":"2026-03-17T09:14:49.229Z","level":"info","service":"notifier","version":"0.4.11","env":"staging","host":"node-c1","logger":"@example/shop-notifier","msg":"notification dispatched","http":{"method":"GET","route":"/healthz","status":200,"duration_ms":142.84},"request_id":"req-000036","order_id":"ord-2026-0317-009643","seq":36}
{"ts":"2026-03-17T09:14:49.688Z","level":"error","service":"inventory-api","version":"2.3.0","env":"staging","host":"node-b1","logger":"shop/inventory/reserve","msg":"insufficient stock for reservation","http":{"method":"POST","route":"/api/orders","status":409,"duration_ms":174.81},"request_id":"req-000037","order_id":"ord-2026-0317-002937","seq":37}
{"ts":"2026-03-17T09:14:49.824Z","level":"error","service":"payments-api","version":"3.1.4","env":"staging","host":"node-b2","logger":"shop.payments.authorize","msg":"upstream payment provider timed out","http":{"method":"POST","route":"/api/checkout","status":502,"duration_ms":449.7},"request_id":"req-000038","order_id":"ord-2026-0317-006407","seq":38}
{"ts":"2026-03-17T09:14:50.515Z","level":"debug","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.PricingService","msg":"recomputed cart totals","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":26.66},"request_id":"req-000039","order_id":"ord-2026-0317-004870","seq":39}
{"ts":"2026-03-17T09:14:50.831Z","level":"info","service":"catalog","version":"0.0.1","env":"staging","host":"node-c1","logger":"shop/catalog/handler","msg":"request completed","http":{"method":"GET","route":"/api/catalog","status":200,"duration_ms":96.07},"request_id":"req-000040","order_id":"ord-2026-0317-005687","seq":40}
{"ts":"2026-03-17T09:14:51.273Z","level":"info","service":"cart-api","version":"0.9.7","env":"staging","host":"node-a2","logger":"shop/cart/handler","msg":"request completed","http":{"method":"GET","route":"/api/cart","status":200,"duration_ms":455.97},"request_id":"req-000041","order_id":"ord-2026-0317-003430","seq":41}
{"ts":"2026-03-17T09:14:52.144Z","level":"debug","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.PricingService","msg":"recomputed cart totals","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":126.52},"request_id":"req-000042","order_id":"ord-2026-0317-006192","seq":42}
{"ts":"2026-03-17T09:14:52.303Z","level":"debug","service":"cart-api","version":"0.9.7","env":"staging","host":"node-a2","logger":"shop/cart/cache","msg":"cache lookup","http":{"method":"GET","route":"/api/cart","status":200,"duration_ms":149.58},"request_id":"req-000043","order_id":"ord-2026-0317-009690","seq":43}
{"ts":"2026-03-17T09:14:52.966Z","level":"info","service":"catalog","version":"0.0.1","env":"staging","host":"node-c1","logger":"shop/catalog/handler","msg":"request completed","http":{"method":"GET","route":"/api/catalog","status":200,"duration_ms":109.15},"request_id":"req-000044","order_id":"ord-2026-0317-003091","seq":44}
{"ts":"2026-03-17T09:14:53.345Z","level":"info","service":"catalog","version":"0.0.1","env":"staging","host":"node-c1","logger":"shop/catalog/handler","msg":"request completed","http":{"method":"GET","route":"/api/catalog","status":200,"duration_ms":181.58},"request_id":"req-000045","order_id":"ord-2026-0317-005284","seq":45}
{"ts":"2026-03-17T09:14:53.678Z","level":"debug","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.PricingService","msg":"recomputed cart totals","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":374.1},"request_id":"req-000046","order_id":"ord-2026-0317-003123","seq":46}
{"ts":"2026-03-17T09:14:53.812Z","level":"warn","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.PricingService","msg":"slow downstream call","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":404.83},"request_id":"req-000047","order_id":"ord-2026-0317-001735","seq":47}
{"ts":"2026-03-17T09:14:54.339Z","level":"info","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.OrderController","msg":"request completed","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":435.09},"request_id":"req-000048","order_id":"ord-2026-0317-003304","seq":48}
{"ts":"2026-03-17T09:14:55.134Z","level":"info","service":"notifier","version":"0.4.11","env":"staging","host":"node-c1","logger":"@example/shop-notifier","msg":"notification dispatched","http":{"method":"GET","route":"/healthz","status":200,"duration_ms":340.86},"request_id":"req-000049","order_id":"ord-2026-0317-009089","seq":49}
{"ts":"2026-03-17T09:14:55.947Z","level":"debug","service":"checkout-api","version":"1.14.2","env":"staging","host":"node-a1","logger":"com.example.shop.checkout.PricingService","msg":"recomputed cart totals","http":{"method":"POST","route":"/api/checkout","status":201,"duration_ms":39.09},"request_id":"req-000050","order_id":"ord-2026-0317-005112","seq":50}
191 lines total — download for the full file.

Specifications

Lines
300
Services
5
Fields Per Record
12
Nested Objects
1
Info
160
Debug
59
Warn
38
Error
43
Seed
7411
Timestamp Format
RFC 3339 with milliseconds
Window Minutes
2.2

Testing contract

Expected to pass
Scenario
Ingest the file and filter by severity.
Expected result
300 records parse and the level counts match the spec table exactly — 43 error, 38 warn, 160 info, 59 debug.

What is a .jsonl file?

JSONL (JSON Lines) is a text format where each line is a complete, independent JSON value, allowing records to be streamed and appended without parsing the whole file. It is not itself a JSON array and each line must stand alone. It is common in logging, machine learning datasets, and data pipelines.

How to use this file

Use an example JSONL to test line-by-line streaming parsers, append-and-resume ingestion, and batch pipelines that process one record per line.

How to use this file for testing

“Structured Application Log — 300 JSON Lines (jsonl)” is a deterministic Novus Examples fixture for Observability, Log parsing, JSON 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: seed 7411. 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

import json

with open("app-structured.jsonl") as f:
    rows = [json.loads(line) for line in f]
print(len(rows), rows[0])

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