Question
The log files of PSM for SSH have been output in following folder,
/var/opt/CARKpsmp/logs/components
And log files tend to be bloated. Especially when debug mode is enabled.
Also, when we checked this files, some logs are over a year old and do not appear to be rotated or discarded on a regular basis.
So we would like to do something about the log bloat.
In this case, is it possible following solution?
- Set expiration date for log size output by PSMforSSH
- Set the maximum log capacity
Or if we delete the old log size, will it affect the operation of PSM for SSH and viewing of Monitring, etc.?
Answer
PSMP does not have the function to delete old logs automatically. This should be done by manually. Or you can do it with CronJob as scheduled task.