[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Q: using logrotate for auditlog file



Hi Ulrich,
yes but leveraging the "copytruncate" option of logrotate. So you don't have to worry about the open state of the file.

HTH
Marco


On Wed, Jul 16, 2014 at 3:54 PM, Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> wrote:
Hi!

The manual does not say whether the file auditlog uses is kept open all the time, or is opened whenever a record is added. The difference is important if you want to use logrotate to rotate the auditlog file. I don't want to restart slapd when rotating the logs. That would be overkill.
Has anybody done this with success?

Regards,
Ulrich