LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Log file reading (https://www.linuxquestions.org/questions/linux-general-1/log-file-reading-70879/)

Garak 07-08-2003 02:44 AM

Log file reading
 
I am trying to read some log files in /var/log which appears to be in binary format (or at least unreadable with vi). I know there are programs which will translate these log files for you in X Windows but I only logon to my server with an ssh session. Is there any way to read these files from the command line? Maybe there is some perl script or other utility that will allow me to view the contents of these file from the command line? Thanks.

unSpawn 07-08-2003 05:42 AM

If it's wtmp: try "last", if it's .*acct files: try "sa", if it's Snort Unified format: try "barnyard", and if it ain't one of these run "file" on the file in question and post the results.

Garak 07-08-2003 09:44 AM

The file command lists the file as "ISO-8859 text, with no line terminators". None of the commands listed seem to allow me to view it.

unSpawn 07-08-2003 10:05 AM

Sigh. And the filename is...

Garak 07-08-2003 06:45 PM

...completely and and totally irrelevant. I told you the file format just as you asked. I also have found the answer from another, less sarcastic source.

unSpawn 07-08-2003 06:55 PM

I also have found the answer from another, less sarcastic source.

Your fellow LQ members would like to thank you for contributing to the community. *Thanks* for posting the answer. Outstanding.


All times are GMT -5. The time now is 06:12 AM.