hopsoft / docker-graphite-statsd

Docker image for Graphite & Statsd
MIT License
867 stars 308 forks source link

carbon LOGROTATION doesnt adds up well with logrotate #93

Open pabx06 opened 6 years ago

pabx06 commented 6 years ago

https://github.com/hopsoft/docker-graphite-statsd/blob/2141fe1fac52a35137215c72a39f05736570147f/conf/opt/graphite/conf/carbon.conf#L34

i always ends en with tons of logs 4-8GB of logs that is higher than my whisper database.

since carbon do move logs file from file.log to file.log.YYYY_MM_DD logrotate does too from file.log to file.log.X=[1-10]

`-rwxr-xr-x 1 _graphite _graphite 199M nov. 15 11:48 listener.log -rwxr-xr-x 1 _graphite _graphite 853M nov. 15 02:49 listener.log.1 -rwxr-xr-x 1 _graphite _graphite 271M nov. 10 23:59 listener.log.2017_11_10

`

pabx06 commented 6 years ago

root@graphite:/var/log/carbon#

ls -lha total 1,9G drwxr-xr-x 2 _graphite _graphite 4,0K nov. 15 03:27 . drwxrwxr-x 19 root syslog 4,0K nov. 15 07:36 .. -rwxr-xr-x 1 root root 46K nov. 15 12:14 console.log -rwxr-xr-x 1 root root 723K nov. 15 02:49 console.log.1 -rwxr-xr-x 1 _graphite _graphite 5,7K nov. 15 02:51 creates.log -rwxr-xr-x 1 _graphite _graphite 209M nov. 15 12:14 listener.log -rwxr-xr-x 1 _graphite _graphite 853M nov. 15 02:49 listener.log.1 -rwxr-xr-x 1 _graphite _graphite 271M nov. 10 23:59 listener.log.2017_11_10 -rwxr-xr-x 1 _graphite _graphite 250M nov. 11 23:59 listener.log.2017_11_11 -rwxr-xr-x 1 _graphite _graphite 99M nov. 8 23:59 listener.log.2017_11_8 -rwxr-xr-x 1 _graphite _graphite 259M nov. 9 23:59 listener.log.2017_11_9 -rwxr-xr-x 1 _graphite _graphite 2,5K nov. 15 11:32 query.log -rwxr-xr-x 1 _graphite _graphite 11K nov. 15 02:49 query.log.1 -rwxr-xr-x 1 _graphite _graphite 4,7K nov. 10 22:53 query.log.2017_11_10 -rwxr-xr-x 1 _graphite _graphite 1,8K nov. 11 19:18 query.log.2017_11_11 -rwxr-xr-x 1 _graphite _graphite 23K nov. 8 23:56 query.log.2017_11_8 -rwxr-xr-x 1 _graphite _graphite 2,9K nov. 9 21:51 query.log.2017_11_9