]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal: filter log based on LogFilterPatterns
authorQuentin Deslandes <qde@naccy.de>
Tue, 13 Sep 2022 15:15:13 +0000 (16:15 +0100)
committerQuentin Deslandes <qde@naccy.de>
Thu, 15 Dec 2022 09:57:39 +0000 (09:57 +0000)
commit87a13dabbd81c2e31fd5ac7b81cce61baf23e59c
tree83b4ddf0c6602b544ccf97a5110586760b1a5c25
parentb8c0565ec4d9c8b2eff7a0799cfdabf66536a87c
journal: filter log based on LogFilterPatterns

Use LogFilterPatterns from the unit's cgroup xattr in order to keep or
discard log messages before writing them to the journal.
When a log message is discarded, it won't be written to syslog, console...
either.

When a native, syslog, or standard output log message is received,
systemd-journald will process it if it matches against at least one
allowed pattern (if any) and none of the denied patterns (if any).
src/journal/journald-client.c [new file with mode: 0644]
src/journal/journald-client.h [new file with mode: 0644]
src/journal/journald-context.c
src/journal/journald-context.h
src/journal/journald-native.c
src/journal/journald-stream.c
src/journal/journald-syslog.c
src/journal/meson.build