Provisioning Server Logging on Virtual Appliance

Document ID : KB000073140
Last Modified Date : 15/03/2018
Show Technical Document Details
Question:
Is there a procedure on Virtual Appliance to compress the provisioning server logs automatically?
Environment:
Identity Manager on Virtual Appliance.
Answer:
There is no script provided but this is simple to manage yourself these Provisioning Server/logs as you can "su imps" from a "config" signed shell. 
E.g. to remove logs older than 5 days: 
find /opt/CA/IdentityManager/ProvisioningServer/logs/* -mtime +5 -exec rm {} \; 
or to zip those logs older than 5 days: 
find /opt/CA/IdentityManager/ProvisioningServer/logs/* -mtime +5 -exec gzip {} \;