Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Use the Console app to monitor other system logs Apps
I didn't realize just how useful the Console app is until I noticed the Open Log... item in the File menu. This allows you to choose the log file for any running service and monitor it in real time. (This is just like running 'tail logname' from the command line, but the Console app does the work for you. In fact it uses tail to do its thing.)

For example:
  1. Turn on FTP access in the Sharing Pane of System Preferences.
  2. Open the Console (in Applications/Utilities).
  3. Choose File - Open Log... (It should take you to /var/log automatically, but if it doesn't, enter /var/log in the Go to field.) Select ftp.log.
  4. Open the Terminal (also in Applications/Utilities).
  5. Type ftp localhost at the prompt.
  6. Watch the messages which appear in the console window. Very cool!
The really nice thing is you can monitor any number of logs in this manner, as each will open in its own window.

-p
    •    
  • Currently 2.00 / 5
  You rated: 2 / 5 (7 votes cast)
 
[6,783 views]  

Use the Console app to monitor other system logs | 5 comments | Create New Account
Click here to return to the 'Use the Console app to monitor other system logs' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Will only work on *.log files
Authored by: pascalpp on Jun 05, '01 04:08:12PM

Apparently, the Console application refuses to open any files which don't end in '.log'. Does anyone know a way to work around this?



[ Reply to This | # ]
Will only work on *.log files
Authored by: atl on Jun 06, '01 02:28:16PM
Well, this is clearly a work-around. In my /etc/httpd/httpd.conf file, for example, I change the appropriate line for access logs on my web server from:
CustomLog /var/log/httpd/access_log common
to:
CustomLog /var/log/httpd/access.log common
Not satisfactory for your use, probably, but very nifty to watch as people hit your server in real-time...

[ Reply to This | # ]
Will only work on *.log files
Authored by: allenhuffman on Dec 02, '01 01:32:49AM

Mac OS 10.1.1 does not seem to require .log files. I'm glad I found this tip -- I was tired of opening three Terminals every time I logged in and manually doing the "tail -f" stuff :)



[ Reply to This | # ]
Will only work on *.log files
Authored by: tsaar on Oct 18, '02 04:04:29PM

Confirmed But get this:

I had Console set up to have open:

/var/log/httpd/access_log
/var/log/ftp.log
/var/log/system.log

Console remembers this on opening and displays these.
I did this in 10.1, then upgraded to 10.2
Console _still_ opened access_log
Until I closed it by mistake...

Kinda sucks. How do we fix it?



[ Reply to This | # ]
Will only work on *.log files
Authored by: tsaar on Oct 19, '02 07:31:15AM

Okay: You can open any log file just by typing the full path to it.

So you'd go
file - open log - and then type
/var/log/httpd/access_log

This works fine!



[ Reply to This | # ]