View previous topic :: View next topic |
Author |
Message |
mjbjr Guru
Joined: 02 Mar 2003 Posts: 301
|
Posted: Sat Apr 30, 2005 12:27 am Post subject: need more system logging |
|
|
My logs just don't seem to provide much info, and seem small in size.
I'm having some hardware config problems, and while in other posts
I see in the forums have tons of info, my don't seem to be nearly as
big. And when they are of a decent size, they are frequently filled
with repeating junk. Not very helpful.
''/etc/metalog/metalog.conf' shows, in part:
maxsize = 100000
maxtime = 86400
maxfiles = 5
these bounce back and forth between 24:10 and 24:50 in duration
# ls -l /var/log/everything
total 52
-rw-r--r-- 1 root root 7930 Apr 29 17:00 current
-rw-r--r-- 1 root root 7348 Apr 24 23:00 log-2005-04-25-07:10:00
-rw-r--r-- 1 root root 7462 Apr 25 23:10 log-2005-04-26-08:00:00
-rw-r--r-- 1 root root 6277 Apr 27 00:00 log-2005-04-27-08:10:00
-rw-r--r-- 1 root root 9088 Apr 28 00:10 log-2005-04-28-09:00:00
-rw-r--r-- 1 root root 7191 Apr 29 01:00 log-2005-04-29-09:10:00
these seem to have gone past 'maxsize' set in 'metalog.conf'
# ls -l /var/log/kernel
total 588
-rw-r--r-- 1 root root 63125 Apr 29 17:05 current
-rw-r--r-- 1 root root 100110 Apr 29 17:01 log-2005-04-30-01:01:15
-rw-r--r-- 1 root root 100110 Apr 29 17:02 log-2005-04-30-01:02:05
-rw-r--r-- 1 root root 100110 Apr 29 17:02 log-2005-04-30-01:02:55
-rw-r--r-- 1 root root 100110 Apr 29 17:03 log-2005-04-30-01:03:45
-rw-r--r-- 1 root root 100110 Apr 29 17:04 log-2005-04-30-01:04:35
While my kernel logs are of a decent size, they are 99% full of this smbus crap,
which also blows out 'dmesg' is short order.
I'm getting about 30 of these a second:
Apr 29 17:13:05 [kernel] i801_smbus 0000:00:1f.3: Transaction (post): CNT=08, CMD=2c, ADD=5b, DAT0=4b, DAT1=00
Apr 29 17:13:05 [kernel] i801_smbus 0000:00:1f.3: Transaction (pre): CNT=08, CMD=2b,ADD=5b, DAT0=4b, DAT1=00
Apr 29 17:13:05 [kernel] i801_smbus 0000:00:1f.3: Transaction (post): CNT=08, CMD=2b, ADD=5b, DAT0=71, DAT1=00
How can I reduce repetitiveness, and get better info in my logs?
How can I get 'dmesg' to automatically do something like 'dmesg > /some_dir/time_stamp_dmesg_boot_info.txt' ?
thanks |
|
Back to top |
|
|
cbx550f Tux's lil' helper
Joined: 11 Jun 2004 Posts: 113 Location: Ontario, Canada
|
Posted: Sun May 01, 2005 12:33 am Post subject: |
|
|
Not directly answering your questions, but....
I have used metalog before, and after some frustration, I discovered that the logs are not saved to disk in realtime - they are buffered and dumped to disk periodically. I switched to syslog-ng and couldn't be happier. _________________ I think, therefore I am wrong. |
|
Back to top |
|
|
mjbjr Guru
Joined: 02 Mar 2003 Posts: 301
|
Posted: Sun May 01, 2005 3:38 am Post subject: |
|
|
cbx550f wrote: | Not directly answering your questions, but....
I have used metalog before, and after some frustration, I discovered that the logs are not saved to disk in realtime - they are buffered and dumped to disk periodically. I switched to ' syslog-ng and couldn't be happier. |
Thanks for the tip.
Is there a guide for making the switch? Of if not, do you have some tips?
Do I just emerge 'syslog-ng', shut down 'metalog', and start up 'syslog-ng'? |
|
Back to top |
|
|
desertstalker Apprentice
Joined: 18 Sep 2004 Posts: 209
|
Posted: Sun May 01, 2005 6:06 am Post subject: |
|
|
more or less you need to remove metalog from the startup lists too (use rc-update) and then add syslog-ng. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|