diff --git a/docs/promtail/config-examples.md b/docs/promtail/config-examples.md index 52b7c929a9a28380f3de05db148d99d85fbfa86a..a7497dc7a355cfd80620bbeeac30e3fb63b0680a 100644 --- a/docs/promtail/config-examples.md +++ b/docs/promtail/config-examples.md @@ -128,12 +128,14 @@ in Loki. All other labels from the journal entry are dropped. ### Example Use `promtail` must have access to the journal path (`/var/log/journal`) -where journal entries are stored for journal support to work correctly. +where journal entries are stored and the machine ID (`/etc/machine-id`) for +journal support to work correctly. -If running with Docker, that means to bind that path: +If running with Docker, that means to bind those paths: ```bash docker run -d --name promtail --network loki_network -p 9080:9080 \ -v /var/log/journal:/var/log/journal \ + -v /etc/machine-id:/etc/machine-id \ mypromtail-image -config.file=/etc/promtail/my-systemd-journal-config.yaml ```