Cost Optimization Guide

Drop noisy 200 logs before they inflate your Datadog bill

Most services emit many successful request logs that are never used in investigations. Those events still cost money.

Why this problem exists

HTTP middleware often logs every request at the same verbosity level.

Without explicit policy, 200 responses become the largest share of log volume.

Real cost and impact

In many web workloads, 70% to 95% of request logs are 200 responses.

Dropping low-value 200s can remove the largest single cost driver in log ingestion.

Solutions (including alternatives)

  • Keep all 4xx and 5xx logs and retain selective 200s for critical endpoints.
  • Use sampling for high-throughput success paths instead of storing every request.
  • Archive full request logs in S3 if compliance or forensics require complete history.

How LogTrim solves it

LogTrim applies status-code and route-aware filters before Datadog ingestion.

Teams can preserve high-signal request telemetry while suppressing repetitive success noise.

Example scenario

A SaaS API dropped generic 200 logs for health endpoints and static assets while retaining checkout and auth events.

Daily ingest dropped sharply with no alert regressions.

Reduce your costs with LogTrim

Start with high-noise categories, keep high-signal logs in Datadog, and archive full retention in S3.