Announcement

Collapse
No announcement yet.

what's the equivalent for Debian /var/log/messages in Ubuntu?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    what's the equivalent for Debian /var/log/messages in Ubuntu?

    I have been a longtime Debian user, so switching to Ubuntu makes me look now and then for equivalents to get certain things done. One thing I'm missing is the file /var/log/messages, I use this when attaching new hardware to see what's happening: tail -f /var/log/messages
    To my surprise Ubuntu doesn't seem to have this file, how can I get the same info I got on my Debian-machines using Ubuntu?

    thanks in advance
    hugo

    #2
    Re: what's the equivalent for Debian /var/log/messages in Ubuntu?

    This is a guess but I think the command dmesg will show the contents of the system log.

    So dmesg |tail -f should give you what you want.

    I'm sure someone will correct me if this is wrong.

    Not quite the answer but (I hope) close enough.
    Kubuntu 20.04(AMD64)/KDE 5

    Comment


      #3
      Re: what's the equivalent for Debian /var/log/messages in Ubuntu?

      Originally posted by quarkslot
      This is a guess but I think the command dmesg will show the contents of the system log.

      So dmesg |tail -f should give you what you want.

      I'm sure someone will correct me if this is wrong.

      Not quite the answer but (I hope) close enough.
      The pipe-mechanism doesn't seem this work this way :-(

      Comment


        #4
        Re: what's the equivalent for Debian /var/log/messages in Ubuntu?

        it will if you put the space between |&tail

        VINNY
        i7 4core HT 8MB L3 2.9GHz
        16GB RAM
        Nvidia GTX 860M 4GB RAM 1152 cuda cores

        Comment


          #5
          Re: what's the equivalent for Debian /var/log/messages in Ubuntu?

          dmesg | tail -f

          Note the spaces.
          Windows no longer obstructs my view.
          Using Kubuntu Linux since March 23, 2007.
          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

          Comment


            #6
            Re: what's the equivalent for Debian /var/log/messages in Ubuntu?

            Strange, the space is not necessary on my system.
            Kubuntu 20.04(AMD64)/KDE 5

            Comment


              #7
              Re: what's the equivalent for Debian /var/log/messages in Ubuntu?

              Edit file: /etc/rsyslog.d/50-default.conf

              Change:
              #*.=info;*.=notice;*.=warn;\
              # auth,authpriv.none;\
              # cron,daemon.none;\
              # mail,news.none -/var/log/messages

              To:

              *.=info;*.=notice;*.=warn;\
              auth,authpriv.none;\
              cron,daemon.none;\
              mail,news.none -/var/log/messages

              Logging to /var/log/messages is back.

              Comment


                #8
                Re: what's the equivalent for Debian /var/log/messages in Ubuntu?

                Originally posted by vinnywright
                it will if you put the space between |&tail

                VINNY
                It makes no difference whether I'm using a space there or not, it just gives me the
                last lines of dmesg but not a "live version" like tail -f /var/log/messages does

                regards,
                hugo

                Comment

                Working...
                X