---
title: Modify the alert retention time
description: Use dsconfig to change the maximum time information about generated alerts retained in the alerts backend. After this time, the information is purged from the server.
component: pingdirectory
version: 9.3
page_id: pingdirectory:pingdatametrics_server_administration_guide:pd_met_modify_alert_retention
canonical_url: https://docs.pingidentity.com/pingdirectory/9.3/pingdatametrics_server_administration_guide/pd_met_modify_alert_retention.html
revdate: September 13, 2023
section_ids:
  example: Example
---

# Modify the alert retention time

Use `dsconfig` to change the maximum time information about generated alerts retained in the alerts backend. After this time, the information is purged from the server.

|   |                                                                                               |
| - | --------------------------------------------------------------------------------------------- |
|   | The minimum retention time is 0 milliseconds, which immediately purges the alert information. |

## Example

This example shows a command to modify the alert retention time to 2 weeks.

```shell
$ bin/dsconfig set-backend-prop --backend-name "alerts" \
  --set "alert-retention-time: 2 weeks"
```

View the property using `dsconfig:`

```shell
$ bin/dsconfig get-backend-prop --backend-name "alerts" \
  --property alert-retention-time
```

Result:

```
Property : Value(s)
---------------------:---------
alert-retention-time : 2 w
```
