journalctl can help you with that, e.g if you use postfix for MTA
# journalctl --no-hostname -o short-iso --since -24h -u postfix
2022-01-17T03:19:14+ postfix/pickup[932305]: D8D2E40FFC: uid=0
from=
2022-01-17T03:19:14+ postfix/cleanup[932955]: D8D2E40FFC:
On Mon, Jan 17, 2022 at 10:58 AM אורי wrote:
> Hi,
>
> I want to check mail.log for how many emails are sent every day. The
> format of my mail.log is something like this:
>
> Jan 17 08:49:23 www (the rest of the log)
>
> I'm running a command such as:
>
> cat mail.log* |fgrep
sed is your friend
Something like:
*sed "s/Jan/01/;s/Feb/02/"*
On Mon, 17 Jan 2022 at 10:58, אורי wrote:
> Hi,
>
> I want to check mail.log for how many emails are sent every day. The
> format of my mail.log is something like this:
>
> Jan 17 08:49:23 www (the rest of the log)
>
>