Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 238
  • Last Modified:

enable better logging on debian

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
W00dyW00d
Asked:
W00dyW00d
  • 3
1 Solution
 
Syngin9Commented:
Is klogd running? (http://www.linuxjournal.com/article/4058)

ps -aux | grep klogd
0
 
W00dyW00dAuthor Commented:
yes,

root      2622  0.0  0.0   1572   372 ?        Ss   20:58   0:00 /sbin/klogd -x
0
 
amprantiCommented:
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
 
W00dyW00dAuthor Commented:
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
 
W00dyW00dAuthor Commented:
Thanks for the suggestion.  Unfortunately I cant find the root of my issue but you did help answer my question.
0

Featured Post

Industry Leaders: 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!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now