Why it matters
Long retention is often set once for every index, while most searches only look at the last few days.How nOps finds it
nOps reads Datadog billing for indexed logs in the 30-day and 15-day retention tiers, for each organization with at least 14 days of history. The saving is the last 7 complete days of cost (committed and on-demand), scaled to a month, times the list-price difference to the next shorter tier: 15-day lists at 68% of 30-day, and 7-day at 74.9% of 15-day. It assumes every index in the tier moves, and must be at least $5 a month.Before you start
Datadog admin access to log indexes, and confirmation of any compliance retention requirements.How to implement
- In Datadog, open Logs → Configuration → Indexes and list the indexes on 30-day or 15-day retention.
- For each, check how far back people search it and whether any compliance rule requires the longer retention.
- Change the retention of indexes that do not need it to the next shorter tier.
- Send logs you must keep long term to a log archive or Flex Logs instead of long indexed retention.
Risks and considerations
- Logs older than the new retention are no longer searchable in the index. Rehydrating from an archive is possible but costs extra.
- Retention prices in your contract can differ from list prices, so the real saving depends on your contract.
- To roll back, set the index retention back.