Re: What can be done to prevent messages from cluttering up log files?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sun, 2023-04-23 at 12:44 +0200, Damjan Georgievski wrote:
> On Sun, 23 Apr 2023 at 07:53, Ralf Mardorf <ralf-mardorf@xxxxxxxxxx> wrote:
> > 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.

Hi,

thank you. There are actually no messages that spam my journal. I just
want to know just in case.

Regards,
Ralf




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux