Not all Grafana log files may be rotated if Grafana is restarted
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.
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.
* 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.
-rw-r--r-- 1 grafana grafana 1241 Jul 8 09:50 grafana.
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