| 1 |
|
| 2 |
@@if not defined SYSTEMD_JOURNAL |
| 3 |
@@define SYSTEMD_JOURNAL @@{RUN}/log/journal |
| 4 |
@@if exists /var/log/journal |
| 5 |
@@define SYSTEMD_JOURNAL var/log/journal |
| 6 |
@@endif |
| 7 |
@@endif |
| 8 |
/@@{RUN}/log(/journal)?$ d RecreatedDir |
| 9 |
|
| 10 |
!/@@{RUN}/systemd/journal$ d |
| 11 |
!/@@{RUN}/systemd/journal/(dev-log|socket|stdout|syslog)$ s |
| 12 |
!/@@{RUN}/systemd/journal/flushed$ f |
| 13 |
/@@{RUN}/systemd/journal/(kernel-)?seqnum$ f VarFile |
| 14 |
!/@@{RUN}/systemd/journal/streams$ d |
| 15 |
!/@@{RUN}/systemd/journal/io\\.systemd\\.journal$ s |
| 16 |
!/@@{RUN}/systemd/journal/streams/[[:digit:]]{1,2}:[[:digit:]]+$ f |
| 17 |
/@@{SYSTEMD_JOURNAL}?$ d RecreatedDir |
| 18 |
/@@{SYSTEMD_JOURNAL}/@@{XMACHINEID}$ d RecreatedDir |
| 19 |
# we cannot monitor gid and acls on journald. This is not going |
| 20 |
# to be fixed upstream, see #934284 and |
| 21 |
# https://github.com/systemd/systemd/issues/22729 |
| 22 |
/@@{SYSTEMD_JOURNAL}/@@{XMACHINEID}/(system|user-[[:digit:]]+)\\.journal$ f VarFile-g-acl-xattrs |
| 23 |
!/@@{SYSTEMD_JOURNAL}/@@{XMACHINEID}/(system|user-[[:digit:]]+)\@[[:xdigit:]]{32}-[[:xdigit:]]{16}-[[:xdigit:]]{16}\\.journal$ f |
| 24 |
|
| 25 |
@@if defined SYSTEMD_JOURNAL_EXTRA |
| 26 |
/@@{SYSTEMD_JOURNAL}/@@{XMACHINEID}/@@{SYSTEMD_JOURNAL_EXTRA}\\.journal$ f VarFile |
| 27 |
@@endif |