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 script to remove access log files from the abs_uploaded directory. The purge script is part of the /opt/pingidentity/ase/util directory.


When the purge script is run, the access log files are permanently deleted from ASE.

To run the purge script, enter the following in ASE command line:

/opt/pingidentity/ase/util/ -d 3
In the above example, deletes all the access log files which are older than 3 days. Here is a sample output for the purge script.
admin@pingidentity# ./util/ -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/ -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.