Skip to content
Novus Examples
jsonl877 B

Structured Log — Schema and Type Drift Across Records (jsonl)

Six records that all mean the same thing and disagree about how to say it: status as a number, a string, a float and the text OK; user as a string, an object and null; tags as an array and a scalar; and the level and message fields renamed. The mapping conflict that stops an index mid-ingest.

Preview — first 7 linesjsonl
{"ts":"2026-03-17T09:14:32.850Z","level":"info","msg":"order accepted","status":200,"user":"cust-000418","tags":["checkout","eu"],"retry":false}
{"ts":"2026-03-17T09:14:33.350Z","level":"info","msg":"order accepted","status":"200","user":{"id":"cust-000418","tier":"gold"},"tags":"checkout","retry":0}
{"ts":"2026-03-17T09:14:33.750Z","level":"INFO","msg":"order accepted","status":200.0,"user":null,"tags":[],"retry":"false"}
{"ts":"2026-03-17T09:14:34.250Z","level":"informational","message":"order accepted","http_status":200,"user_id":"cust-000418"}
{"ts":"2026-03-17T09:14:34.750Z","severity":"INFO","msg":"order accepted","status":"OK","user":"cust-000418","tags":["checkout"],"retry":null}
{"ts":"2026-03-17T09:14:35.150Z","level":"info","msg":"order accepted","status":200,"user":"cust-000418","tags":["checkout"],"retry":false,"extra":{"deep":{"deeper":{"value":1}}}}

Specifications

Lines
6
Drifting Fields
5
Status Types
number, string, float, text
Level Field Names
level, severity
Message Field Names
msg, message
Type Conflicts Per Field
3

Testing contract

Expected to recover
Scenario
Ingest all six records into a store with dynamic field mapping.
Expected result
The type conflict on status is reported per record rather than failing the whole batch, and a normalising pipeline maps severity to level and message to msg so all six records land in one schema.

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 Log — Schema and Type Drift Across Records (jsonl)” is a deterministic Novus Examples fixture for Observability, Log parsing, Schema validation. 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: JSONL · 877 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

import json

with open("app-schema-drift.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.