mirror of
https://github.com/grafana/grafana.git
synced 2025-01-26 00:06:58 -06:00
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>
This commit is contained in:
parent
339138d61a
commit
d17ba95492
@ -53,6 +53,17 @@ GF_PATHS_LOGS | /var/log/grafana
|
||||
GF_PATHS_PLUGINS | /var/lib/grafana/plugins
|
||||
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
|
||||
|
||||
> Only available in Grafana v5.2 and later.
|
||||
|
Loading…
Reference in New Issue
Block a user