Commit d17ba954 by Leonard Gram Committed by GitHub

Docs: logging in the docker container (#26119)

* Docs: logging in the docker container

* Docs: wording

* Update docs/sources/installation/configure-docker.md

Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
parent 339138d6
...@@ -53,6 +53,17 @@ GF_PATHS_LOGS | /var/log/grafana ...@@ -53,6 +53,17 @@ GF_PATHS_LOGS | /var/log/grafana
GF_PATHS_PLUGINS | /var/lib/grafana/plugins GF_PATHS_PLUGINS | /var/lib/grafana/plugins
GF_PATHS_PROVISIONING | /etc/grafana/provisioning GF_PATHS_PROVISIONING | /etc/grafana/provisioning
## Logging
Logs in the Docker container go to standard out by default, as is common in the Docker world. Change this by setting a different [log mode]({{< relref "../administration/configuration.md#mode" >}}).
Example:
```bash
# Run Grafana while logging to both standard out and /var/log/grafana/grafana.log
docker run -p 3000:3000 -e "GF_LOG_MODE=console file" grafana/grafana
```
## Configure Grafana with Docker Secrets ## Configure Grafana with Docker Secrets
> Only available in Grafana v5.2 and later. > Only available in Grafana v5.2 and later.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment