I know this question has been dead for 15 months by now, but since it is the first result coming up when searching for grafana docker logs:
Grafana's logging mode in its default configuration is set to console
. You can change that by setting the environment variable GF_LOG_MODE
to console file
if you want the logs to be written to both, the console and a file. Set it to file
otherwise.
This works for docker-compose.yml
, docker run
or can be set at a later point of time from within the grafana-container by editing its grafana.ini
Edit: You might have to set the environment variable GF_LOG_LEVEL
in addition to GF_LOG_MODE
as your container might crash otherwise: GF_LOG_LEVEL=info
The different log-modes to chose from can be found in Grafana's precise documentation
/var/log/grafana
? Or are youexec
ing into the container and looking there? Note that (as mentioned in the docs) volumes are not automatically created any more. Have you upgraded from a pre-5.1 version? – Amado