LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-08-2003, 02:44 AM   #1
Garak
LQ Newbie
 
Registered: Feb 2003
Location: Seattle, WA
Posts: 16

Rep: Reputation: 1
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.
 
Old 07-08-2003, 05:42 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.
 
Old 07-08-2003, 09:44 AM   #3
Garak
LQ Newbie
 
Registered: Feb 2003
Location: Seattle, WA
Posts: 16

Original Poster
Rep: Reputation: 1
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.
 
Old 07-08-2003, 10:05 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Sigh. And the filename is...
 
Old 07-08-2003, 06:45 PM   #5
Garak
LQ Newbie
 
Registered: Feb 2003
Location: Seattle, WA
Posts: 16

Original Poster
Rep: Reputation: 1
...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.

Last edited by Garak; 07-08-2003 at 06:49 PM.
 
Old 07-08-2003, 06:55 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
log on not reading user's .bashrc jkcunningham Linux - General 8 05-15-2010 06:49 PM
Reading Log files with NetTracker PensJunkie Linux - Software 2 07-30-2005 09:11 AM
awk: fatal:cannot open file for reading (no such file or Directory) in Linux sangati vishwanath Linux - Software 4 07-06-2005 12:59 AM
Debian not reading .xinitrc on log in esteeven Debian 1 02-23-2004 09:49 AM
Help reading Error Log (messages) micxz Linux - Networking 2 09-27-2003 03:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration