Hie<br><br><div class="gmail_quote">2012/1/17 David Hoskinson <span dir="ltr">&lt;<a href="mailto:david.hoskinson@datatrak.net">david.hoskinson@datatrak.net</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal">I am having a bit of trouble understanding creation and deletion of logs.  Creation is max number of logs = 10, fie size 100 MB, and create a new log every day.  This is the default I believe as I haven’t changed it.  My question is does one of these parameters over ride the other?  For example we want to keep 24 weeks of logs, and for example create a log everyday.  And logs are quite small for us, so would the 100 mb parameter take precedence or the one day setting?   <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Same with deletion… would like the when drive has less then 5 mb and delete files over 24 weeks old but don’t care about the 500 mb total size.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I see some fields can be set with -1 to inactivate them but some can’t…<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">If anyone can explain this a little clearer I am sure its just something I am missing<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p>
<span class="HOEnZb"><font color="#888888"><p class="MsoNormal"> </p></font></span></div></div></blockquote></div><br>Of course per day time will take preference over the size limit of 100 MB &amp; vice versa.<br><br>>From what I understood you want to have log files for 24 weeks (168 days) One log file per day. <br>
<br>nsslapd-accesslog-maxlogsperdir: 168<br>nsslapd-accesslog-mode: 600<br>nsslapd-accesslog-maxlogsize: 1   &lt;-- We have set 1 so that it will ignore the size of file and rotate only after a day regardless of the size of a log file.<br>
nsslapd-accesslog-logrotationtime: 1 &lt;-- Since we want to rotate daily <br>nsslapd-accesslog-logrotationtimeunit: day<br><br>Same will be with errorlogs &amp; audit logs.<br><br>Regarding Logs delete.  (whichever come first)<br>
<br>nsslapd-accesslog-logmaxdiskspace: 500 &lt;--- Maximum disk space taken by access logs, If exceeds Oldest file will be deleted<br>nsslapd-accesslog-logminfreediskspace: 5 &lt;--------- minimum free disk in MB, If goes below this Oldest file will be deleted<br>
<br>Regards<br>Arpit Tolani<br>