log-design.com log record design · ingest tradeoffs · schema compliance
Disclosure: This site may contain affiliate or paid-placement links; any such relationship is disclosed on each affected item and detailed on our editorial & methodology disclosure page. The workbench itself is free, deterministic, and runs entirely in your browser — no data leaves this page.

Log Design Workbench

A deterministic instrument console for designing structured log records. Paste a log line to evaluate it against a rule set, model ingest latency/throughput/cost across transport presets, score a schema compliance checklist, and export a SHA-256 spec receipt — all client-side, all reproducible.

01 · Record Evaluator

02 · Compliance Checklist

0%

03 · Ingest Tradeoff Console

20,000 rps

04 · Export & Receipt

No export yet. Receipts include a deterministic SHA-256 over canonical JSON.

Log record anatomy

Required core fields

  • ts — UTC ISO-8601 timestamp, millisecond precision
  • level — severity enum: TRACE DEBUG INFO WARN ERROR FATAL
  • message — human-readable summary, bounded length
  • trace_id — 32-char hex correlation id

Design rules of thumb

  • Keep payloads under 16 KB; move bulk data to object storage and log a reference.
  • Batch aggressively at the shipper — batching is the cheapest latency you can buy.
  • Compression ratios above ~3× usually mean you are logging the same field twice.
  • Cost models here assume a 30-day hot retention window; adjust retention before extrapolating.

Preset dataset

Five reference transports modelled deterministically: local file append, syslog/UDP, Vector batch shipper, managed cloud ingest, and Kafka tiered storage. Latency uses a queueing model (util/(1-util)) on a fixed base; cost is per-GB ingest × 30-day retention ÷ compression.

Determinism guarantee

Every number on this page is computed by js/core.mjs from ES2022 math with strict input guards. The same inputs always produce the same chart, the same checklist score, and the same SHA-256 receipt. No network calls, no randomness, no backend.