Structured logging
summary
Argues that replacing brittle text logs with machine-readable events turns logs into an Event Source: JSON records with typed fields, request-id correlation and automatic enrichers, making queries and joins trivial. Demonstrates .NET Serilog emitting structured events directly to Elasticsearch/Kibana or to Seq (tested ~1000 eps on a single node), extracts a distributed-request graph via Graphviz, finds the slow ad service and a fraud pattern by joining XML/sql views, and shows migration is a simple logger swap with backward compatibility.
AI-written summary · about
chapters (11)
- 0:00Introduction to logging problems
- 4:18Evolution of logging formats
- 6:25ELK stack overview
- 10:00Limitations of Grok parsing
- 13:12Structured logging concept
- 17:25Serilog library introduction
- 24:52Debugging microservices with logs
- 33:03Fraud detection example
- 38:06Serilog.Sinks.Seq demo
- 44:29Choosing logging solutions
- 47:46Q&A session
