Click System > Task Scheduler, select the Learn Mode Log Cleanup scheduled task, and then click Edit to modify the scheduled task that initiates the learnmodecleanup.sh
file at regular intervals. The scheduled task can be set to n hours or days based on your preference. The default recommended frequency is Daily-Every Midnight.
In addition to setting the task, you can define the duration for which you want to archive the Learn Mode logs. The following image displays the Learn Mode Log Cleanup scheduled task.
The following table provides sample configurations:
Frequency | Command line value | Retain the logs for | Default values |
---|---|---|---|
Daily-Every Midnight | /opt/protegrity/alliance/bin/scripts/learnmodecleanup.sh 10 DAYS | Last 10 DAYS | Days can be set between 1 to 66 |
Every hour | /opt/protegrity/alliance/bin/scripts/learnmodecleanup.sh 10 HOURS | Last 10 HOURS | Hours can be set between 1 to 23 |
Note: If a numeric value is set without the HOURS or DAYS qualifier, then DAYS is considered as the default.