← Back to team overview

graphite-dev team mailing list archive

[Question #198157]: can log rotation be turned off?

 

New question #198157 on Graphite:
https://answers.launchpad.net/graphite/+question/198157

Here's an example of how a carbon log is rotated:
-rw-r--r--  1 root   root   15261648 May 16 23:59 listener.log.2012_5_16
-rw-r--r--  1 root   root   15278109 May 17 23:59 listener.log.2012_5_17
-rw-r--r--  1 root   root   15276162 May 18 23:59 listener.log.2012_5_18
-rw-r--r--  1 root   root   15277401 May 19 23:59 listener.log.2012_5_19
-rw-r--r--  1 root   root   15275985 May 20 23:59 listener.log.2012_5_20
-rw-r--r--  1 root   root   15277401 May 21 23:59 listener.log.2012_5_21
-rw-r--r--  1 root   root   15180228 May 22 23:50 listener.log

Is there a way to turn off this rotation, such that logs simply go to (in the above example) "listener.log"?

That way, I can use Linux's logrotate and have it consistent with my other log rotations.

Otherwise, I'm stuck with doing a cron job to "find" and delete logs older than X days.

Thanks!

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.