[collectd] [colletcd] how to split/rotate the logfile

Vedran Bartonicek vbartoni at gmail.com
Mon Feb 15 18:56:19 CET 2016


any reason for not using logrotate?

On 14 February 2016 at 16:30, 何爽 <hshopeful at gmail.com> wrote:

> hi, all
> I have been used collectd for some times, I set the logfile plugin as
> follows:
>
> LoadPlugin logfile
> <Plugin logfile>
>   LogLevel info
>   File "/var/log/collectd.log"
>   Timestamp true
>   PrintSeverity true
> </Plugin>
>
> I found a problem: the size of the log file("/var/log/collectd.log")
> reached to 2GB.
> I wonder whether there is some way to split/rotate the log file when its
> size reaches to 50MB
>
> Any answers will be appreciated.
> Thanks
>
>
> _______________________________________________
> collectd mailing list
> collectd at verplant.org
> http://mailman.verplant.org/listinfo/collectd
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20160215/55e017bf/attachment.html>


More information about the collectd mailing list