Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #275017

Re: differences between sysvinit and systemd; was: where is mail.log

From Greg Wooledge <greg@wooledge.org>
Newsgroups linux.debian.user
Subject Re: differences between sysvinit and systemd; was: where is mail.log
Date 2024-11-30 15:10 +0100
Message-ID <JOwkx-cMmd-3@gated-at.bofh.it> (permalink)
References (3 earlier) <JOgSt-cA0d-23@gated-at.bofh.it> <JOpj3-cH3B-1@gated-at.bofh.it> <JOuVr-cLnT-3@gated-at.bofh.it> <JOuVr-cLnT-1@gated-at.bofh.it> <JOvHQ-cLTQ-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Nov 30, 2024 at 13:03:32 +0000, Michael Kjörling wrote:
> # awk '{ if($5 ~ "^postfix[[]") { print } }' </var/log/messages

That's a rather verbose way of writing that awk command.

    awk '$5 ~ "^postfix[[]"' /var/log/messages

Also, I'm quite new to postfix, but this pattern doesn't appear to match
any lines in my log files.  First of all, the lines in question seem to
be in /var/log/syslog on Debian 10, not in messages.  Second, they all
look like:

    Nov 30 08:43:08 remote postfix/smtpd[5243]: connect from bendel.debian.org[82.195.75.100]

and so on, with postfix followed by a slash, not a square bracket.
Maybe your system is different, and therefore your logs are different.
This is actually an endorsement for the systemd journal, where the
lines in question are identified precisely by the unit/service name,
and don't need to be matched by a questionable regular expression.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

where is mail.log Bitfox <hi@bitfox.ddns.net> - 2024-11-29 01:10 +0100
  Re: where is mail.log Greg Wooledge <greg@wooledge.org> - 2024-11-29 01:20 +0100
    Re: where is mail.log "Roy J. Tellason, Sr." <roy@rtellason.com> - 2024-11-29 21:20 +0100
      Re: where is mail.log Greg Wooledge <greg@wooledge.org> - 2024-11-29 21:30 +0100
        Re: where is mail.log gene heskett <gheskett@shentel.net> - 2024-11-29 22:30 +0100
        Re: where is mail.log Nicolas George <george@nsup.org> - 2024-11-30 14:40 +0100
          Re: where is mail.log "Roy J. Tellason, Sr." <roy@rtellason.com> - 2024-11-30 23:30 +0100
        Re: where is mail.log Max Nikulin <manikulin@gmail.com> - 2024-12-03 04:10 +0100
          Re: where is mail.log Greg Wooledge <greg@wooledge.org> - 2024-12-03 04:20 +0100
            Re: where is mail.log "Jonathan Dowland" <jmtd@debian.org> - 2024-12-03 10:30 +0100
      Re: where is mail.log Andy Smith <andy@strugglers.net> - 2024-11-29 21:50 +0100
      Re: where is mail.log pocket@homemail.com - 2024-11-29 22:40 +0100
        Re: where is mail.log <tomas@tuxteam.de> - 2024-11-30 07:40 +0100
          Re: where is mail.log Bitfox <bitfox@secubox.org> - 2024-11-30 13:40 +0100
            Re: where is mail.log Scott Andrews <pocket@homemail.com> - 2024-11-30 14:00 +0100
              Re: where is mail.log Richard Owlett <rowlett@access.net> - 2024-11-30 15:10 +0100
            Re: where is mail.log <tomas@tuxteam.de> - 2024-11-30 14:30 +0100
            Re: differences between sysvinit and systemd; was: where is mail.log Michael Kjörling <c9bc136c6063@ewoof.net> - 2024-11-30 14:30 +0100
              Re: differences between sysvinit and systemd; was: where is mail.log Greg Wooledge <greg@wooledge.org> - 2024-11-30 15:10 +0100
                Re: differences between sysvinit and systemd Michael Kjörling <c9bc136c6063@ewoof.net> - 2024-11-30 16:50 +0100
            Re: where is mail.log Nicolas George <george@nsup.org> - 2024-11-30 14:50 +0100
          Re: where is mail.log pocket@homemail.com - 2024-11-30 13:40 +0100
            Re: where is mail.log Andy Smith <andy@strugglers.net> - 2024-11-30 18:00 +0100
              Re: where is mail.log Scott Andrews <pocket@homemail.com> - 2024-11-30 18:40 +0100
                Re: where is mail.log <tomas@tuxteam.de> - 2024-11-30 19:00 +0100
                Re: where is mail.log pocket@homemail.com - 2024-11-30 19:20 +0100
                Re: where is mail.log Andy Smith <andy@strugglers.net> - 2024-11-30 19:30 +0100
                Re: where is mail.log <tomas@tuxteam.de> - 2024-11-30 19:30 +0100
                Re: where is mail.log Greg Wooledge <greg@wooledge.org> - 2024-11-30 19:40 +0100
                Re: where is mail.log Andy Smith <andy@strugglers.net> - 2024-11-30 20:00 +0100
                Re: where is mail.log <tomas@tuxteam.de> - 2024-11-30 20:20 +0100
                Re: where is mail.log and the changing Linux ecosystem George at Clug <Clug@goproject.info> - 2024-12-01 01:10 +0100
                Re: where is mail.log and the changing Linux ecosystem Greg Wooledge <greg@wooledge.org> - 2024-12-01 01:20 +0100
                Re: where is mail.log and the changing Linux ecosystem George at Clug <Clug@goproject.info> - 2024-12-01 01:30 +0100
                Re: where is mail.log and the changing Linux ecosystem <tomas@tuxteam.de> - 2024-12-01 07:20 +0100
                Re: where is mail.log Jeffrey Walton <noloader@gmail.com> - 2024-12-02 17:30 +0100
                Re: where is mail.log Scott Andrews <pocket@homemail.com> - 2024-11-30 20:00 +0100
                Re: where is mail.log Andy Smith <andy@strugglers.net> - 2024-11-30 19:10 +0100
            Re: where is mail.log Anssi Saari <anssi.saari@debian-user.mail.kapsi.fi> - 2024-12-02 13:10 +0100
  Re: where is mail.log Dan Ritter <dsr@randomstring.org> - 2024-11-29 01:40 +0100
    Re: where is mail.log Greg Wooledge <greg@wooledge.org> - 2024-11-29 03:10 +0100
      Re: where is mail.log Bitfox <hi@bitfox.ddns.net> - 2024-11-29 05:10 +0100
      Re: where is mail.log Bitfox <hi@bitfox.ddns.net> - 2024-11-29 11:40 +0100
        Re: where is mail.log George at Clug <Clug@goproject.info> - 2024-11-30 13:30 +0100
  Re: where is mail.log George at Clug <Clug@goproject.info> - 2024-11-29 03:50 +0100
  Re: where is mail.log Michael <ml@hemathor.de> - 2024-12-02 12:50 +0100
    Re: where is mail.log Nicolas George <george@nsup.org> - 2024-12-02 13:10 +0100
      Re: where is mail.log Andy Smith <andy@strugglers.net> - 2024-12-02 16:10 +0100
        Re: where is mail.log Michael <ml@hemathor.de> - 2024-12-03 11:20 +0100

csiph-web