System Design
17. Observability and MonitoringAnimated
Structured Logging
Logs as machine-readable fields.
The idea
JSON logs with consistent fields are easy to search and aggregate.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
Apps emit metrics, logs and traces.
- step:
- 1/4
- at:
- Apps
1/9
The green dot is a request moving through the system.
Step by step
- 1Log events as key-value fields
- 2Include a request id
- 3Ship the logs
- 4Query by field
Where it is used
Debugging.
Watch out for
Never log secrets or personal data.