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

Re: mail log question



On 2025-09-12 14:22:34 +0200, Markus Schönhaber wrote:
> If you just want to see all "mail-related" messages with journalctl, you
> can use
> 
> $ journalctl --facility mail

Indeed, thanks a lot!

> That doesn't help with journalctl's slowness if the journal has grown
> big, of course.

It actually helps *very much*.

joooj% time journalctl -b --facility mail > /dev/null
journalctl -b --facility mail > /dev/null  1.24s user 0.13s system 84% cpu 1.616 total
joooj% time journalctl -b -u postfix\* > /dev/null
journalctl -b -u postfix\* > /dev/null  3.79s user 28.51s system 26% cpu 2:02.46 total

So "--facility mail" is here 75 times as fast as "-u postfix\*".

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)


Reply to: