Solved

enable better logging on debian

Posted on 2008-10-03
5
230 Views
Last Modified: 2013-12-06
I have a Debian Etch server and it doesn't seem like its logging any errors.  My server will have an issue and need a manual reboot and when i look in /var/logs the log files wont have any issues logged.  I have a custom kernel so maybe i disabled something that would be better enabled?  Anything you can think of that might have limited my error logging.  I have not modified /etc/syslog.conf or the defaults that the syslogd starts with.

Here my last example.  the server started giving me Connection refused so i rebooted and nothing in logs but marks leading up before the reboot.

0
Comment
Question by:W00dyW00d
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 6

Expert Comment

by:Syngin9
ID: 22637386
Is klogd running? (http://www.linuxjournal.com/article/4058)

ps -aux | grep klogd
0
 

Author Comment

by:W00dyW00d
ID: 22637448
yes,

root      2622  0.0  0.0   1572   372 ?        Ss   20:58   0:00 /sbin/klogd -x
0
 
LVL 10

Accepted Solution

by:
ampranti earned 500 total points
ID: 22641823
Check also this file: /var/log/kern.log

Then try adding this line:
       kern.debug                        /var/log/mydebugs
        or
        *.debug                        /var/log/mydebugs

Be prepared for huge amount of logs
Probably you should increase the severity in steps, until you find the cause of the problem

Keep in mind that if this problems is kenrel based, you may not see anything to logs.
If everything else fails, you may have to redirect all logs produced to serial port and receive them on a laptop. (Serial is usually the last interface that will stop working)
0
 

Author Comment

by:W00dyW00d
ID: 22666039
Well thanks for the suggestions, but I have not found the root cause for my issue.  I will have to tell the local tech to figure it out.

Thanks for the help.
0
 

Author Closing Comment

by:W00dyW00d
ID: 31502901
Thanks for the suggestion.  Unfortunately I cant find the root of my issue but you did help answer my question.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to run my script during boot in rhel 7 14 582
Help in Setting up VLAN interfaces in Ubuntu 14.04 LTS 7 70
Mysql Crashing Intermittently 16 122
High Bandwidth Usage 6 98
After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question