Grafana oss 12.0 log file shows own by root and not updating

Hi Experts,

I am using grafana OSS v12 and I recently I notice that my garafa log files are not updating and it shows log file is own by root. I can see logs in journal and grafana is running as user - grafana.
We are using packer and jenkins to build the grafana.
I changed permission manually for grafana.log file and its getting updated after this but i dont know how this permission on log file is changing.

Any pointer how to troubleshoot this.

  • What Grafana version and what operating system are you using?

  • What are you trying to achieve?

  • How are you trying to achieve it?

  • What happened?

  • What did you expect to happen?

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?

please check
cat /etc/logrotate.d/grafana
o/p : create 0644 root root then
create 0644 grafana grafana
systemctl cat grafana-server

  • User=grafana must be grafana
  • LogsDirectory= ya RuntimeDirectory= config
    check grafana log also
    ls -l /var/log/grafana/
1 Like