Skip to content

Commit f08031f

Browse files
authored
docs: clarify that path must be a directory (#142)
The `path` parameter is passed to the systemd-journal gem's `:path` option, which opens journal files in a directory only. A glob or individual file (e.g. `/var/log/journal/*.journal`) does not work and fails silently with no logs read. Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent 0a744b6 commit f08031f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ If you are upgrading to version 1.0 from a previous version of this plugin take
6969

7070
**`path`**
7171

72-
Path to the systemd journal, defaults to `/var/log/journal`
72+
Path to the systemd journal **directory**, defaults to `/var/log/journal`.
73+
74+
This must be a directory, not an individual file or a glob pattern — for example, `/var/log/journal/*.journal` will not work. All journal files in the given directory are read automatically.
7375

7476
**`filters`**
7577

0 commit comments

Comments
 (0)