1847805 Members
2710 Online
104021 Solutions
New Discussion

Re Kernel Messages

 
Adrian Jujescu_1
Occasional Contributor

Re Kernel Messages

Hello all,

Do you know how to record the kernel messages into a file which can be periodically inspected to look after clues regarding different problems ?

Thanks in advance !!!
Adrian Jujescu
4 REPLIES 4
Cheryl Griffin
Honored Contributor

Re: Re Kernel Messages

Kernel messages are logged in syslog. They are prefaced with "vmunix" in the text.
"Downtime is a Crime."
Bill Hassell
Honored Contributor

Re: Re Kernel Messages

Applications and the kernel will use syslog. However, many messages regarding your system are not generated by the kernel, but by daemons and other tools. The /var/adm/syslog/syslog.log file will grow without bounds and you'll need to look at it regularly as wellas trim it. A second location is the internal system message buffer which is viewed with the command dmesg. This will have some kernel messages and also some console messages. You'll also want to look at anything in /var/adm/ that has the suffix .log for possible information.


Bill Hassell, sysadmin
Shahul
Esteemed Contributor

Re: Re Kernel Messages


Hi,

you can configure /etc/syslog.conf to send all kernel messages to syslog.log. Running syslogd with -D switch will prevent appearing kenel messages to console.

Best of luck
Shahul
Prashant Zanwar_4
Respected Contributor

Re: Re Kernel Messages

Hi,

Check with syslogd man page also. It has very good information.

kern,mark.debug /dev/console
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root,eric,kridle
*.emerg *
*.emerg @admin

logs all kernel messages and 20 minute marks onto the system console,all mail system messages to /var/adm/syslog/mail.log, and all messages at info and above, except mail messages, to the file
/var/adm/syslog/syslog.log. Messages at alert and above are logged to
the console and to the users root, eric, and kridle if they are logged
in. emerg messages are written to all logged-in users' terminals, and forwarded to the host admin.

A configuration file selector selects all messages at the specified
level or higher.The configuration lines:

user.debug /tmp/logfile
user.info /tmp/logfile

cause the logfile to get two copies of all user messages at level info and above.

Warnings:
Kernel panic messages are not sent to syslogd
If syslogd is invoked with the -D option and syslogd terminates abnormally, kernel messages will not appear on the system console. In that case, reinvoke syslogd without the -D option to enable the kernel
to send its messages to the system console.

Series 700:
Kernel logging through the special log device /dev/klog is not supported.

Hope it helps
Thanks
Prashant



"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."