Hello Hermann,

> the usage of both logrotate and the carbon internal logrotation
> facility yields to the logs splitted, see content of
> directory /var/log/carbon below.
> 
> For the moment, disabling /etc/logrotate.d/graphite-carbon would be
> avoid the mess, but in the long run carbon's internal logrotation
> should probably switched off (to be done upstream).

you are correct. Carbon rotates also. I have created an patch against
that problem.

Could you please apply the following patch against your installed
log.py (/usr/share/pyshared/carbon/log.py):

http://anonscm.debian.org/gitweb/?p=pkg-graphite/packages/graphite-carbon.git;a=blob;f=debian/patches/disable_internal_logroate.patch;h=eb9bb1f1c125b3d6662cd687aab071870f1149ce;hb=b9bb0232108dd8eececc4c6ec73a54a62122c248

Steps:

 - stop carbon
 - apply the patch
 - remove all logs from var/log/carbon/
 - start carbon
 - activate logrotate again
 - wait one day 
 - restart carbon
 - force run logroate

If it works on your side, I will submit it to upstream.

Thanks,
        Jonas


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to