Automatic Rotation of PSMP Log Files

Automatic Rotation of PSMP Log Files

101
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 15:51 PM


Question


How do I make PSMP rotate logs?


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


Before version 13.2, PSMP did not automatically rotate its log files. Customers can do so by creating a daily cron job that runs the following example script:
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



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000lwdCAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail