Ravindra BagaleCourses & study guides

Chapter 14: Logging and Light Observability

Chala mitrano, aaj aapan logging — server sathi flight recorder. Request fail zali ki replay. Containers madhe stdout/stderr aani docker logs, central searchable logs, journald/logrotate, aani primary path: CloudWatch Logs (AWS link). ELK cha short mention. Correlation IDs ek paragraph. Secrets log madhe — kadhi nahi. Ghabru naka: generate → query last error → 5-line incident note.

What you will learn in this chapter

  • Container stdout/stderr and docker logs
  • Why central searchable logs matter
  • journald and logrotate basics
  • CloudWatch Logs as the primary path
  • Correlation IDs and a short incident note

Concepts in this chapter

  1. 14.1Why logs — flight recorder for the server
  2. 14.2stdout/stderr and docker logs
  3. 14.3Local OS logs — journald and files
  4. 14.4Primary path — CloudWatch Logs
  5. 14.5Log groups, streams and agents (conceptual)
  6. 14.6Searching — find the last error
  7. 14.7Correlation IDs — one paragraph that saves hours
  8. 14.8Light observability vocabulary
  9. 14.9Security and hygiene
  10. 14.10Anti-patterns
  11. 14.11Troubleshooting table
  12. 14.12Lab — generate, query, write the note

Review and practice

  1. ★14.11b Retention, cost awareness and lab hygiene
  2. ★14.11c From red metric to log line (glue with Chapter 13)
  3. ★14.11d Structured logging mini-example

The chapter recap is at the end of the last concept page.