To manage storage space, you can either archive or purge access log, controller log, and audit log files that have been uploaded to ABS. ASE provides a purge.sh script to remove access log files from the abs_uploaded directory. The purge script is part of the /opt/pingidentity/ase/util directory.
To run the purge script, enter the following in ASE command line:
/opt/pingidentity/ase/util/purge.sh -d 3 In the above example, purge.sh deletes all the access log files which are older than 3 days. Here is a sample output for the purge script. admin@pingidentity# ./util/purge.sh -d 3 This will delete logs in /opt/pingidentity/ase/logs/abs_uploaded that is older than 3 days. Are you sure (yes/no): yes removing /opt/pingidentity/ase/logs/abs_uploaded/Processed_decoy_pid_27889__2017-04-01_11-04.log.gz : last changed at Sat Apr 1 11:11:01 IST 2017 removing /opt/pingidentity/ase/logs/abs_uploaded/Processed_http_ws_80_pid_27905__access__2017-04-01_11-04.log.gz : last changed at Sat Apr 1 11:11:01 IST 2017
External log archival
The purge script can also archive logs to secondary storage for future reference. The purge script provides an option to choose the number of days to archive the log files. Use the -l option and the path of the secondary storage to place the archived log files. For example:
admin@pingidentity# ./util/purge.sh -d 3 -l /tmp/
In the above example, log files older than three days are archived to the tmp directory. To automate log archival, add the script to a cron job.