On 10/07/2010 03:53 AM, Jerry McCarthy wrote:
I can see where the SignedAudit System and Transactions logs have log.instance type settings but I am interested in the debug log. It does not appear to have the same controls on the CS.cfg file. My SignedAudit System and Transactions logs are already rotating fine. Are you saying that if I add a:
log.instance.debug.maxFileSize=2000
I don't think this is possible to do as of yet.
to the appropriate CS.cfg my debug logs will rotate?
Regards,
Jerry McCarthy CPMG
-----Original Message----- From: Kashyap Chamarthy [mailto:kchamart@redhat.com] Sent: Wednesday, October 06, 2010 8:11 AM To: Jerry McCarthy Cc: pki-users@redhat.com Subject: Re: [Pki-users] Rotating debug logs.
On 10/04/2010 12:42 AM, Jerry McCarthy wrote:
Some of my debug logs (/var/log/pki-*/debug) are getting large. I tried adding:
/var/log/pki-ca/debug /var/log/pki-kra/debug /var/log/pki-ocsp/debug /var/log/pki-ra/debug { weekly rotate 5 notifempty missingok }
To /etc/logrotate.d But that didn't appear to do anything. Can anybody give me some suggestions as to how to setup the debug logs for auto rotation?
I believe you can manipulate the 'maxFileSize' directive in /var/lib/pki-ca/conf/CS.cfg (similar for other subsystems) ------------------------- log.instance.SignedAudit.maxFileSize=2000 log.instance.System.maxFileSize=2000 log.instance.Transactions.maxFileSize=2000 ------------------------
If the file reaches a particular size limit, then the logs are rotated. If the vales in the above directives are increased, I think you'll see lesser rotation of logs.
/kashyap
Regards,
Jerry McCarthy CPMG
_______________________________________________ Pki-users mailing list Pki-users@redhat.com https://www.redhat.com/mailman/listinfo/pki-users