<div dir="ltr">any reason for not using logrotate?</div><div class="gmail_extra"><br><div class="gmail_quote">On 14 February 2016 at 16:30, 何爽 <span dir="ltr"><<a href="mailto:hshopeful@gmail.com" target="_blank">hshopeful@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">hi, all<div>I have been used collectd for some times, I set the logfile plugin as follows:</div><div><br></div><div><div>LoadPlugin logfile</div><div><Plugin logfile></div><div>  LogLevel info</div><div>  File "/var/log/collectd.log"</div><div>  Timestamp true</div><div>  PrintSeverity true</div><div></Plugin></div></div><div><br></div><div>I found a problem: the size of the log file("/var/log/collectd.log") reached to 2GB.</div><div>I wonder whether there is some way to split/rotate the log file when its size reaches to 50MB</div><div><br></div><div>Any answers will be appreciated.</div><div>Thanks</div><div><br></div></div>
<br>_______________________________________________<br>
collectd mailing list<br>
<a href="mailto:collectd@verplant.org">collectd@verplant.org</a><br>
<a href="http://mailman.verplant.org/listinfo/collectd" rel="noreferrer" target="_blank">http://mailman.verplant.org/listinfo/collectd</a><br>
<br></blockquote></div><br></div>