1. Use dsconfig to change the maximum time information about generated admin alerts is retained in the Alerts backend. After this time, the information gets purged from the Directory Server. The minimum retention time is 0 milliseconds, which immediately purges the alert information.
    $ bin/dsconfig set-backend-prop --backend-name "alerts" \ 
      --set "alert-retention-time: 2 weeks"
  2. View the property using dsconfig.
    $ bin/dsconfig get-backend-prop --backend-name "alerts" \
      --property alert-retention-time
    Property	: Value(s) 
    alert-retention-time : 2 w