awesome-everything RU
↑ Back to the climb

Observability

Structured logging: free-recall review

Crux Free-recall prompts across the structured-logging unit. Answer each in your own words first, then reveal the model answer and compare.
Your altitude — climbing toward senior
ZeroJuniorMiddleSenior
You are at senior altitude — in orbit
◷ 14 min

Retrieval beats re-reading. For each prompt, say or write a full answer from memory before you open the model answer — the effort of recall is what makes the material stick at 03:00 when you need it.

Goal

Reconstruct the unit’s spine — what makes a log structured, the level-to-routing contract, the sampling and cost levers, source-and-collector PII defence, trace correlation, and the audit subsystem — without looking back at the lessons.

Recall before you leave
  1. 01
    What makes a log line structured rather than free-text, and where does the payback show up?
  2. 02
    Name the core fields of a production log schema and explain why OTel Semantic Convention field names matter.
  3. 03
    What does each rung of the level ladder mean, and how does it drive alert routing? Why is misclassification dangerous?
  4. 04
    Describe the three sampling strategies and why sampling belongs at the collector, not the application.
  5. 05
    Explain the two layers of PII defence and the structural prevention for log injection (CWE-117).
  6. 06
    How does trace_id reach a log line automatically, what is the failure mode, and how do you detect it?
Recap

If you could reconstruct each answer from memory, you hold the unit’s spine: structured means addressable typed fields that pay back at query time; the OTel schema and convention names make logs joinable across services; the level ladder is a routing contract where misclassification causes alert fatigue or invisible failure; sampling keeps cost proportional to incidents while retaining all WARN/ERROR at the collector; PII is defended at source and collector and injection is prevented structurally by passing input as typed fields; trace_id is auto-injected from the execution context and breaks at async boundaries; and audit logs need their own pipeline, retention, immutability, and access. The log line is an API contract for both your on-call and your auditor.

Continue the climb ↑Structured logging: code and log reading
shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?
sources3
expand
  1. 01
  2. 02
  3. 03

Trademarks belong to their respective owners. Editorial reference only.