Log buckets and retention
powered by Grail preview
Logs powered by Grail can be stored in different buckets. The first rule that you define determines your bucket. Within each bucket, you can also choose retention periods.
To choose your data retention period:
- In the Dynatrace menu, go to Settings > Logs monitoring > Log buckets.
- Select Add rule and name your rule.
- Select Bucket and choose the retention period (35 days, 1 year, 3 years).
- Add Matcher (DQL).
- Select Save changes.
For example, if you need to have a 3-year retention period for the logs whose content contains the word 'error', you can name your rule as 'Error log 3-year retention', select the 3-year bucket, and add the below Matcher (DQL):