Use the following task to set a retention policy, which limits the amount of data collected over a retention period. It is strongly recommended that you set data retention policies to meet your minimum business requirements, in order to preserve disk space. The maximum retention period is two years, or 17520 hours.
hostname:> analytics settings
hostname:analytics settings> show Properties: retain_second_data = all retain_minute_data = all retain_hour_data = all hostname_lookup = true
The retention policy is measured in hours. If you want to set your policy to a certain number of days, weeks, or months, you must first calculate the number of hours in that period. In the following example, set retain_second_data=72 retains data recorded at a per-second interval for 72 hours, or 3 days.
hostname:analytics settings> set retain_second_data=72 retain_second_data = 3 days (uncommitted)
hostname:analytics settings> commit