Engineering for Reliability
How to find cloud logs and manage logging costs
Twenty-three substantive episodes on SLOs, telemetry, alerting, investigation, and operations
Twenty-three 2021–2022 episodes connect user-facing reliability targets to metrics, logs, traces, and alerts. Examples show instrumentation, Prometheus collection, quota monitoring, GKE investigation, and observability cost controls.
In this collection Browse 23 summaries 5 of 23
Finding the relevant logs and deciding which logs to keep are different tasks. This episode uses queries to narrow an investigation, then shows how billing and ingestion measurements reveal the sources of logging cost. Reducing that cost can also remove evidence needed to diagnose failures 00:00–01:02(opens in a new tab), 03:08–06:29(opens in a new tab).
Key Points Covered
- Use queries to find a subset of existing logs: Logs Explorer converts field selections into an editable query. The demo filters for a frontend service, negates an error condition, restricts the time range, and samples entries. Saving the query makes a recurring investigation easier to repeat 00:00–02:05(opens in a new tab).
- Use cost and volume views together: Billing reports show logging charges. Ingestion metrics show which resources produce the log volume behind those charges 03:08–04:11(opens in a new tab).
- Exclusions affect what remains available for investigation: The presenter calls exclusions the main way to reduce ingestion cost. A query only filters which stored logs you see; an exclusion filter on a log sink stops matching entries from being ingested at all. In the 2021 behavior described, excluded entries are unavailable in Logs Explorer and Cloud Debugger; entries routed to no log bucket are also unavailable to Error Reporting. These are the product behaviors in the example, not current guarantees 04:11–06:29(opens in a new tab).
- Producing fewer logs is another control: The presenter recommends adjusting application log levels as well as using exclusions, balancing diagnostic visibility against volume. Adjusting log levels is especially useful for serverless services, where there is no way to view excluded logs 05:15–06:29(opens in a new tab).
Full video: https://www.youtube.com/watch?v=z6hpL8J-jG4(opens in a new tab)