# Logging Buckets in Non-Production Environments Storing Info Logs

Canonical: https://www.pointfive.co/efficiency-hub/inefficiencies/logging-buckets-in-non-production-environments-storing-info-logs-1edcf

[Cloud Efficiency Hub](https://www.pointfive.co/efficiency-hub) 

# Logging Buckets in Non-Production Environments Storing Info Logs

## Explanation

Non-production environments frequently generate INFO-level logs that capture expected system behavior or routine API calls. While useful for troubleshooting in development, they rarely need to be retained. Allowing all INFO logs to be ingested and stored in Logging buckets across dev or staging environments can lead to disproportionate ingestion and storage costs. This inefficiency often persists because log routing and severity filters are not differentiated between production and non-production projects.

## Relevant Billing Model

Cloud Logging charges for data ingestion and retained storage beyond the free tier. INFO-level logs can represent the majority of log volume, and in non-production environments - where they rarely drive operational decisions - these costs provide little return on value.

## Detection

- Identify non-production projects with Logging buckets configured to capture all log severities, including INFO

- Review ingestion volume by log severity to quantify the share of INFO-level logs

- Assess whether INFO logs are ever queried or analyzed in non-production environments

- Determine if sink filters or routing policies apply uniform rules across production and non-production projects

## Remediation

- Adjust sink filters to exclude INFO-level logs in non-production environments

- Establish environment-specific logging policies that retain only WARNING and ERROR logs in dev and staging projects

- Route necessary INFO logs temporarily to low-cost storage (e.g., Cloud Storage with limited retention) for debugging purposes

- Periodically review ingestion patterns to ensure filters remain aligned with operational needs and cost targets

## Relevant Documentation

- [Cloud Logging Exclusions and Filters](https://cloud.google.com/logging/docs/exclusions)

- [Cloud Logging Pricing](https://cloud.google.com/stackdriver/pricing)

[Submit Feedback](https://hub.pointfive.co/inefficiencies/logging-buckets-in-non-production-environments-storing-info-logs-1edcf)

## At a glance

Reference

CER-0245

Cloud provider

GCP

Service

GCP Cloud Logging

Category

[Other](https://www.pointfive.co/efficiency-hub/service-category/other)

Inefficiency type

Excessive Ingestion of Low-Value Logs

## Contributed by

- ### Yuval Goldstein

---
Source: the public page above. Product screenshots and illustrative interfaces are examples, not live customer data.

