with-agents

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.

Google Cloud Tech 5 of 23
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, while ingestion metrics identify the resources producing log volume. The latter helps explain the former 03:08–04:11(opens in a new tab).
  • Exclusions affect what remains available for investigation: Unlike a query over stored logs, an exclusion on a sink filters what that route ingests. 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. This is especially important in the serverless example, where excluded logs cannot be viewed afterward 05:15–06:29(opens in a new tab).

Full video: https://www.youtube.com/watch?v=z6hpL8J-jG4(opens in a new tab)

Search

Search field guides and resources across the site.

    Keyboard shortcuts

    Press ? to open this guide (usually Shift + /). Close it before using other site shortcuts.

    Show keyboard shortcuts
    ?
    Search site
    Ctrl + K
    Close the current dialog or menu
    Esc

    Site shortcuts are ignored while typing. Browser and extension shortcuts may take priority.