> For the complete documentation index, see [llms.txt](https://docs.onelens.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.onelens.cloud/optimize-cost-savings-and-recommendations/deep-insights/gcp-cloud-logging.md).

# GCP Cloud Logging

Cloud Logging shows the cost of your GCP log buckets: how much each bucket ingests, how long it keeps logs, and which resources produce the most log volume.

Go to **Optimize → Deep Insights → Cloud Logging** (under GCP). The page has two tabs, **Log Buckets** and **Tickets**.

### Log Buckets tab

<figure><img src="https://3963693991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiyNGpqVYfmDF6qt7Lzar%2Fuploads%2FE7r14trpP3VliOoOwdFF%2Fimage.png?alt=media&amp;token=afe4a823-1709-472e-83aa-6d04c40855e9" alt=""><figcaption></figcaption></figure>

Three cards show **Total Log Buckets**, **Total Cloud Logging Cost** and **Avg Daily Ingestion**.

| Column              | What it shows                                         |
| ------------------- | ----------------------------------------------------- |
| Bucket Name         | The log bucket, with a ticket badge if it has tickets |
| Project             | The GCP project                                       |
| Location            | Where the bucket stores logs, such as Global          |
| Bucket Type         | The bucket type, such as Default                      |
| Log Analytics       | Whether Log Analytics is On or Off for the bucket     |
| Ingestion (GiB/day) | Average daily log ingestion                           |
| Retention           | How long logs are kept                                |
| Total Cost          | Cost for the selected date range                      |
| Prev Cost           | Cost for the previous period of the same length       |
| Delta               | The change from Prev Cost, as a percentage            |

### Log bucket details

Click a bucket to open it.

<figure><img src="https://3963693991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiyNGpqVYfmDF6qt7Lzar%2Fuploads%2F96tWpa7jKV4Q28Z9pSbR%2Fimage.png?alt=media&amp;token=c6099790-0022-4ab7-99d4-d401bebebd67" alt=""><figcaption></figcaption></figure>

The **Resource Details** tab has three sections.

| Section                    | What it shows                                                                                                                              |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| Resource Information       | Project, bucket ID, bucket type, location, description, retention, whether Log Analytics is enabled, linked BigQuery dataset, and CMEK key |
| Inbound Sinks (Log Router) | Each Log Router sink that routes logs into this bucket, with its number of exclusion filters                                               |
| Log-Based Metrics          | Counts of user-defined metrics (and how many have labels) and system-defined metrics                                                       |

#### Cost & Usage Overview

<figure><img src="https://3963693991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiyNGpqVYfmDF6qt7Lzar%2Fuploads%2FZLXUakHUpy0CwyHVVoR6%2Fimage.png?alt=media&amp;token=e80a3693-98be-44e1-aab3-a515990ddaf3" alt=""><figcaption></figcaption></figure>

**Log Storage cost** is split by the type of resource that produced the logs, such as GCS bucket, Kubernetes container or Kubernetes cluster, with the cost and volume for each. Smaller types are grouped into one row, for example "60 other resource types".

### Tickets tab

<figure><img src="https://3963693991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiyNGpqVYfmDF6qt7Lzar%2Fuploads%2FxYFrZRUGc4E4o34RXiYy%2Fimage.png?alt=media&amp;token=9aa1337f-fb05-4d74-b68d-6d57dd5c3358" alt=""><figcaption></figcaption></figure>

Two cards show **Total Tickets** and **Potential Savings (Up-To)**, with the share of your Cloud Logging cost the savings represent.

Ticket IDs start with GCL\_. A common ticket is **Missing Cloud Logging exclusion filters**. Its recommendation is to add exclusion filters so you ingest, and pay for, fewer logs.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.onelens.cloud/optimize-cost-savings-and-recommendations/deep-insights/gcp-cloud-logging.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
