Results 1 to 6 of 6

Thread: How do I read binary logs?

  1. #1
    Join Date
    Mar 2009
    Beans
    1,982

    How do I read binary logs?

    Hi,

    It seems the longer I run Linux, the more binary logs I see. There must be some way to read them.

    Can someone clue me in?

    Thanks.

  2. #2
    Join Date
    Apr 2012
    Beans
    7,256

    Re: How do I read binary logs?

    Er... what logs? where are you seeing these?

  3. #3
    Join Date
    Aug 2009
    Location
    Makati City, Philippines
    Beans
    2,269
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: How do I read binary logs?

    Depends on the logs. some programs have terminal commands to specifically read the logs they create.

  4. #4
    Join Date
    Mar 2009
    Beans
    1,982

    Re: How do I read binary logs?

    Just some examples in /var/log on Ubuntu Server 12.04:
    1. atop.log
    2. btmp.log
    3. faillog
    4. lastlog
    5. wtmp


    This is from one box. In different instances there are a different number of binary logs.

    In some cases, can't remember what but will post when I get back to it, you wind up with a lot of binary logs. One example I can remember is if you use systemd.

    IMO these things have always made the log useless, and I've taken steps to disable the thing that made binary logs. It seems this is becoming the norm though, so I need to figure out how to read them.

  5. #5
    Join Date
    Apr 2012
    Beans
    7,256

    Re: How do I read binary logs?

    You can read wtmp and btmp with commands 'last' and 'lastb' respectively

    Similarly, lastlog and faillog have their own display utilities - called 'lastlog' and 'faillog'

    I don't know about atop.log

  6. #6
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: How do I read binary logs?

    atop.log can be read with atop -r. See atop(1).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •