> ## Documentation Index
> Fetch the complete documentation index at: https://help.nops.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Shorten Datadog Log Retention

> Move Datadog log indexes to a shorter retention tier when nobody searches them that far back.

Datadog prices indexed logs by how long they are kept: 30-day retention costs more than 15-day, and 15-day more than 7-day. nOps finds organizations with indexed logs in the 30-day or 15-day tier and estimates the saving from moving them to the next shorter tier.

| | |
| - | - |
| **Cloud** | Datadog |
| **Category** | Observability |
| **Service** | Datadog Log Management |
| **Action** | Modify |
| **Effort** | Low |
| **Restart needed** | No |
| **Can be rolled back** | Yes |
| **Analysis window** | Last 7 days |
| **Source** | nOps |

## 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

1. In Datadog, open **Logs → Configuration → Indexes** and list the indexes on 30-day or 15-day retention.
2. For each, check how far back people search it and whether any compliance rule requires the longer retention.
3. Change the retention of indexes that do not need it to the next shorter tier.
4. 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.

## Related

* [Commit Steady Datadog On-Demand Usage](https://help.nops.io/inform/supported-recommendations/commit-steady-datadog-on-demand-usage)
* [Supported recommendations](https://help.nops.io/inform/supported-recommendations.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.