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
03 · Ingest Tradeoff Console
04 · Export & Receipt
Log record anatomy
Required core fields
ts— UTC ISO-8601 timestamp, millisecond precisionlevel— severity enum: TRACE DEBUG INFO WARN ERROR FATALmessage— human-readable summary, bounded lengthtrace_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.