On Sun, 23 Apr 2023 at 07:53, Ralf Mardorf <ralf-mardorf@xxxxxxxxxx> wrote: > > Hi, > > assuming you can't get rid of the cause of messages flooding the log > file, could you prevent writing with a filter? After all, only filtering > when reading would not prevent the unnecessary growth of log files. you didn't say which messages, but in systemd 253 there's a new per-unit option LogFilterPatterns=. * A new LogFilterPatterns= option has been added for units. It may be used to specify accept/deny regular expressions for log messages generated by the unit, that shall be enforced by systemd-journald. Rejected messages are neither stored in the journal nor forwarded. This option may be used to suppress noisy or uninteresting messages from units. -- damjan