Reading contents of binary log files in /var/log
Daniel Staal
DStaal at usa.net
Thu Apr 24 14:24:19 PDT 2008
--As of April 25, 2008 2:42:05 AM +0530, Siju George is alleged to have
said:
>
> I find that the following files in /var/log namely
>
> failedlogin
> lastlog
> pflog
> wtmp
>
> does not give sensible output using "cat"
>
> Could someone please tell me how to get meaningful data out of these log
> files?
--As for the rest, it is mine.
pflog can be read by 'tcpdump', check the man pages for details. (It is in
standard tcpdump format.)
The other three files are used by the 'last' command, to generate the
statistics it shows.
Daniel T. Staal
---------------------------------------------------------------
This email copyright the author. Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes. This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------
More information about the Openbsd-newbies
mailing list