|
|
#1 |
|
All Star
Join Date: Sep 2006
Posts: 860
|
console log only couple lines
I am not sure what has changed but console.app only shows a couple of lines in the console log and all messages log. I am using leopard and i think this may have occurred after the osx weekly and monthly scripts were run by macaroni. This could be just coincidence though. Any ideas on how to fix my logs? The system log is fine.
|
|
|
|
|
|
#2 |
|
All Star
Join Date: Sep 2006
Posts: 860
|
Any ideas people? It appears I only get the last line after boot and login and no more.
|
|
|
|
|
|
#3 |
|
Hall of Famer
Join Date: Apr 2002
Posts: 3,315
|
Not sure how to fix, but that is one definite change in Leopard.
It works fine here (Console.app that is)... but I'm not sure how. console.log used to be in /Library/Logs/... under Console/[shortname]/console.log for pre-Tiger Macs, and later under Console/[uidnumber]/console.log with Tiger. Now I can't find the actual log file anywhere. Does anyone know where "console.log" has moved to in Leopard? -HI- |
|
|
|
|
|
#4 |
|
Major Leaguer
Join Date: Aug 2004
Location: Pittsburgh
Posts: 349
|
I believe the console log (along with duplicates of anything else that shows up under "all messages") are stored in binary format in /private/var/log/asl.db . This file replaces the asl.log that used to be there.
|
|
|
|
|
|
#5 | |||||||||||||||||||||||
|
Hall of Famer
Join Date: Apr 2002
Posts: 3,315
|
-rw------- 1 root wheel - 433040 Nov 13 23:20 /private/var/log/asl.db Hmm, that's a little overprotected for a "console log" isn't it? We can at least read system.log -rw-r----- 1 root admin - 98000 Nov 13 23:17 /private/var/log/system.log It's gotta be somewhere where we can use Terminal to view/search/monitor it. No? [without a root shell i mean] |
|||||||||||||||||||||||
|
|
|
|
|
#6 | |||||||||||||||||||||||
|
Prospect
Join Date: Sep 2002
Location: London
Posts: 31
|
As far as I can see, all the Console messages also appear in system.log. But a lot of stuff that used to appear in Console in Tiger seems to be missing. |
|||||||||||||||||||||||
|
|
|
|
|
#7 |
|
All Star
Join Date: Sep 2006
Posts: 860
|
This is odd because before macaroni rotated the logfiles (which it probably thought were still tiger log files) everything looked and acted normal. Afterwards, the logs displayed this new behavior of putting most things in system.log and nothing in the other logs.
|
|
|
|
|
|
#8 | |||||||||||||||||||||||
|
Prospect
Join Date: Sep 2002
Location: London
Posts: 31
|
Try syslog -C | more Didn't know this earlier :-) |
|||||||||||||||||||||||
|
|
|
|
|
#9 | |||||||||||||||||||||||
|
Prospect
Join Date: Sep 2002
Location: London
Posts: 31
|
If you look at the rotated logs, you'll see the last message in console was produced when you were still running Tiger. |
|||||||||||||||||||||||
|
|
|
|
|
#10 | |||||||||||||||||||
|
All Star
Join Date: Sep 2006
Posts: 860
|
No, thats not how it was. I actually was heavily monitoring my console and all messages logs for days after leopard. I sent several developers the errors from my console.log. Then I got the bright idea to do the monthly maintenance and surprise, no more console.log. |
|||||||||||||||||||
|
|
|
|
|
#11 | |||||||||||||||||||||||
|
Site Admin
Join Date: Jan 2002
Location: Montreal
Posts: 32,473
|
Some extracts from the Apple doc on daemons: http://developer.apple.com/technotes/tn2005/tn2083.html
I.e. this confirms what oldfogey said above - the way to view console log entries in Leopard is via 'syslog -C' (See: http://developer.apple.com/documenta.../syslog.1.html)
__________________
hayne.net/macosx.html Last edited by hayne; 11-14-2007 at 11:23 PM. |
|||||||||||||||||||||||
|
|
|
|
|
#12 | |||||||||||||||||||||||
|
Hall of Famer
Join Date: Apr 2002
Posts: 3,315
|
Hmm, thanks for that. But then... how would we continuously "monitor" that? [like the way Console.app does]. If it were a file we could: tail -f /path/to/log But tail -f won't/can't do the "-f" part on a pipe... unless there's a 'named pipe' (FIFO file) somewhere? -- Ooooops.... just read the man page hayne linked to. We do that like so: syslog -w 20 ![]() Hmmm, but that "-w" can't be combined with "-C". [it freaks out]
Last edited by Hal Itosis; 11-15-2007 at 12:24 AM. |
|||||||||||||||||||||||
|
|
|
|
|
#13 |
|
All Star
Join Date: Sep 2006
Posts: 860
|
ok I see, console.app was apparently not updated to reflect the new log rules. I guess there would have to be a version for tiger and then one for leopard. Otherwise in 10.5 you have the now useless "console and All messages" logs showing up in the "log database queries" section of the console.app.
|
|
|
|
|
|
#14 |
|
All Star
Join Date: Sep 2006
Posts: 860
|
just to follow up, my problem magically disapeared after I upgraded to Macaroni 2.1
|
|
|
|
|
|
#15 |
|
Prospect
Join Date: Oct 2007
Posts: 22
|
I have this same issue where suddenly my LOG DATABASE QUERIES All Message query is resetting after console.app is closed.
Any ideas on why this change occured? Prior to last night's Quicktime update and an Adobe Flash update....the All Messages worked fine with keeping the log windows showing all the logs lines. -Kevin
__________________
Mac Pro 2.66 GHz, 23" ACD // MacBook 2.4 GHz // Mac & Tech http://www.macandtech.com |
|
|
|
|
|
#16 |
|
Prospect
Join Date: Oct 2007
Posts: 22
|
So after some searching, I didn't find this specific issue, but what I think was happening was the database that stores all the logs on my system, got to be about 24 MB. The DB is located at /var/log/asl.db
This site here: http://smartic.us/2007/11/8/leopard-...y-time-machine Discusses something different, but the comments talk about the asl.db file. So I tried the following commands, as per one of the comments: sudo launchctl stop com.apple.syslogd sudo rm /var/log/asl.db sudo launchctl start com.apple.syslogd Those commands removed the asl.db file, but it wasn't being recreated. So I rebooted. After the reboot, the file is back and my console is acting mornally again. -Kevin
__________________
Mac Pro 2.66 GHz, 23" ACD // MacBook 2.4 GHz // Mac & Tech http://www.macandtech.com |
|
|
|
|
|
#17 |
|
All Star
Join Date: Sep 2006
Posts: 860
|
http://www.macosxhints.com/article.p...8&query=syslog
this hint discusses the growing log problem and proposes a solution. |
|
|
|
|
|
#18 |
|
Major Leaguer
Join Date: Mar 2006
Posts: 280
|
So did i understand correctly that console log entries are now in system.log?
Are there any entries that are not logged to system.log but was in console.log? |
|
|
|
|
|
#19 |
|
All Star
Join Date: Mar 2006
Location: Littleton, Colorado, USA
Posts: 515
|
The System and Console logs both go into the ASL database, which can be manipulated with the syslog utility. System logs also get echoed to /var/log/system.log, but Console logs aren't echoed to a text file anymore in Leopard - the Console.app extracts them using the equivalent of syslog -C or syslog -k Facility com.apple.console.
|
|
|
|
|
|
#20 | |||||||||||||||||||||||
|
Major Leaguer
Join Date: Mar 2006
Posts: 280
|
Thanks. These unix commands are too kinky to my skills. ![]() If i want to get entire Console log to text file, how i do that? If i just use some of those above syslog codes, then i lose rest of the Console messages from that point to next rotation. And if i do it every hour, then i still lose on average 30 minutes worth of Console messages when its rotated? |
|||||||||||||||||||||||
|
|
|
![]() |
|
|