Interview Prep/SRE & Reliability/Observability & Telemetry Decisions

A team wants to use logs to compute their SLO because they don't have metrics. Is that OK?

IntermediateScenarioObservability & Telemetry Decisions
Answer

Situation read → Logs can be a valid SLI source, but they are usually slower, costlier, and lossy under pressure. It's a stepping stone, not the goal.

What I'd do →

  1. Accept it short term if access logs are complete (load balancer or ingress logs are good sources).
  2. Derive metrics from logs instead of querying raw logs each time: Loki recording rules, CloudWatch metric filters, or an OTel count connector.
    sum(rate({app="billing"} | json | status >= 500 [5m]))
    / sum(rate({app="billing"} | json [5m]))
    
  3. Validate the log-derived SLI against a known incident to confirm it moves when users suffer.
  4. Plan native metrics (Prometheus client or OTel metrics) as the long-term source.

Why → Log pipelines drop data under load — exactly when the SLI matters. Metrics are cheaper and more reliable for SLOs.

Interview tip → Point out that log sampling or drops would make the SLO look better during incidents.

All SRE & Reliability questions

More on Observability & Telemetry Decisions