6.2. Changing Data Retention Policy
This procedure describes how to change the data retention policy.
Procedure
-
Edit the
/etc/cron.d/pcp-pmloggerfile. -
Find the line containing
pmlogger_daily. -
Change the value for parameter
-xto the desired number of days after which data is archived. Add parameter
-k, and add a value for the number of days after which data is deleted.For example, the parameters
-x 4 -k 7specify that data will be compressed after 4 days, and deleted after 7 days.