Structured logs

A structured log is a record of events in a machine-readable format, often JSON, with named fields (level, timestamp, request identifier). It is easily filtered and aggregated in a centralized logging tool, unlike free text.

Example

{"level":"error","msg":"payment declined","request_id":"a1b2"}

Related concepts

The whole glossary