Not all Grafana log files may be rotated if Grafana is restarted

Bug #1602224 reported by Simon Pasquier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StackLight
Confirmed
Low
LMA-Toolchain Fuel Plugins

Bug Description

When Grafana is restarted, it rotates its own log file if it hasn't been created the same day. Demonstration:

# ls -lart /var/log/grafana/
total 16
-rw-r--r-- 1 grafana grafana 1003 Jul 7 10:55 grafana.log.2016-07-08.001
drwxr-xr-x 2 grafana grafana 4096 Jul 8 09:26 .
-rw-r--r-- 1 grafana grafana 1241 Jul 8 09:50 grafana.log
drwxrwxr-x 21 root syslog 4096 Jul 11 13:58 ..

# /etc/init.d/grafana-server restart
 * Stopping Grafana Server [ OK ]
 * Starting Grafana Server [ OK ]

1# ls -lart /var/log/grafana/
total 20
-rw-r--r-- 1 grafana grafana 1003 Jul 7 10:55 grafana.log.2016-07-08.001
-rw-r--r-- 1 grafana grafana 1241 Jul 8 09:50 grafana.log.2016-07-12.001
drwxrwxr-x 21 root syslog 4096 Jul 11 13:58 ..
drwxr-xr-x 2 grafana grafana 4096 Jul 12 11:23 .
-rw-r--r-- 1 grafana grafana 908 Jul 12 11:23 grafana.log

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.