Privileged Account Manager 3.5
How to configure custom perl scripts to handle rollover operations for audit database files, audit videos and host log files.
Understanding basic storage maintenance requirements so the server does not run out of disk space.
Rollover and archival procedures are handled through custom perl scripts in PAM. This accommodates for a wide range of security models / retention policies and archival procedures. There are options to configure how often this occurs, typically by time (in hours) or by size (in Mb), but the actual procedure that is executed is the custom perl script that is provided as the rollover script.
Documentation provides several example rollover scripts that can be used. They can be extended to handle any additional requirements or procedures that are necessary for the organization, such as moving the rolled-over files to an archive location. Alternatively, with these basic rollover procedures in place, custom bash scripts with crontab could handle these files in various ways. If any are developed, please do share with the community in our forums or as a cool tool!
Example rollover scripts can be found below:
- Host Log (logs/unifid.log):
See Modifying Log Settings.
See Example Rollover Script.
Note: unifid.log is rolled-over as something like unifid.log_2018-08-17_09-40-50.bak.gz.
- Audit database files (service/local/audit/cmdctrl.db):
See Audit Settings.
Note: cmdctrl.db is rolled-over as something like cmdctrl-2018-08-17_09-40-50.db.
- Audit videos (service/local/audit/video/):
See Configuring Video Archival (Optional).
For auto-expiration or deletion of audits, there are a few options or paths forward:
- Create a simple bash script integrated with crontab to review and expire rolled-over audit logs.
Note: The rolled-over audits are time-stamped in the filename.
- Expand the default audit rollover perl script to include expiration as well. Please take a look at the following example:
Example Audit Rollover & Expire Perl Script.
- A few Enhancements have been filed with Engineering for consideration.