Skip to content

Commit

Permalink
promtail: Use the default journal path configuration
Browse files Browse the repository at this point in the history
Commit 967a317 set the journal to
`volatile` which makes journald to write the logs to `/var/run/journal`
instead of `/var/log/journal`.  The default settings of the promtail
journal scraper handles both cases:

> Path to a directory to read entries from. Defaults to system
> paths (/var/log/journal and /run/log/journal) when empty.

Reference: https://grafana.com/docs/loki/latest/send-data/promtail/configuration/#journal
  • Loading branch information
wagdav committed Nov 15, 2023
1 parent 18ec14a commit 85b0b49
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/promtail.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ in
{
job_name = "journal";
journal = {
path = "/var/log/journal";
max_age = "12h";
labels = {
job = "systemd-journal";
Expand Down

0 comments on commit 85b0b49

Please sign in to comment.