RousselTMLEARNING

Observability

Data retention in Dynatrace: Grail, buckets and durations by data type

Understand how long Dynatrace keeps logs, traces, metrics, sessions and events, manage retention with Grail buckets, and balance costs, compliance and analysis needs.

1. The principles #

One duration per data type.

Overview #

Each data type has its own retention period. In Grail, data is stored in buckets whose retention you set (in days); classic data has fixed durations or durations defined by the subscription.

Data typeDefault order of magnitude
Distributed traces (PurePath, spans)About ten days
Logs and events (Grail default buckets)About 35 days, adjustable per bucket
RUM user sessionsAbout 35 days
MetricsSeveral months to several years, with resolution decreasing with age
ProblemsSeveral months
Good to know: Exact durations depend on your subscription and evolve with the platform: check them in the documentation and in your environment's storage settings.

2. Managing retention with buckets #

Adapting duration to usage.

Buckets #

You create dedicated buckets (for example audit logs kept for a year, debug logs kept for 7 days) and route data to them at ingestion with processing rules (OpenPipeline).

BucketRetentionContent
logs_audit365 daysSecurity and access logs
logs_applicatifs35 daysStandard application logs
logs_debug7 daysVerbose logs
Good practice: Permissions can also be granted per bucket: audit logs can only be read by the security team.

3. Costs and compliance #

Finding the right balance.

Making trade-offs #

  • Keeping data longer costs storage: keep for a long time only what will actually be queried.
  • GDPR requires not keeping personal data longer than necessary: mask at ingestion and limit retention (see the article on handling GDPR in Dynatrace).
  • For indicators over several years, prefer (aggregated) metrics to raw logs.
  • Document the chosen durations and review them every year.

Related articles

Accessing the Dynatrace playground and getting started

The Dynatrace playground is a demo environment full of real data: how to access it, what it allows and does n…

Grail buckets in Dynatrace: creation, routing, retention, rights and costs

Complete guide to Grail buckets: purpose, default buckets, creation in Storage management, with the API or Te…

The Dynatrace QuickStart app: getting your first data in minutes

Discover the QuickStart app: add data with Auto Discovery or a dedicated tile, read Findings, explore with da…

Keep learning

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!