Automatic Rotation of PSMP Log Files
Question
Environment
11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.4;12.3;12.5;12.6;13.0;13.2;14.0 Privileged Access Manager (PAM, self-hosted) PSMP
Answer
find /var/opt/CARKpsmp/logs/old/*.log -mtime +30 -exec rm {} \; 2> /dev/null
find /var/opt/CARKpsmp/logs/components/old/*.log -mtime +30 -exec rm {} \; 2> /dev/null
Related: How to Customize PSMP Log locations
NOTE: Idira Support does not cover the configuration or customization of the provided example. Use at your own risk.
Starting version 13.2, PSM for SSH can now automatically stop logging to a file if it exceeds a set size or duration limit and start logging to a new file. This simplifies the management of logs and ensures that all logs can be restored properly. Additionally, the folder containing the log files can be cleaned automatically based on the date of the files or the total size of the folder. All limits and frequency of the clean-up can be customized.
For more details regarding the Automatic Rotation of PSMP for versions 13.2 and above, please see the following article:
https://community.cyberark.com/s/article/Automatic-Rotation-of-PSMP-Log-Files-from-version-13-2