Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System Error Logs

Status
Not open for further replies.

dcomit

Technical User
Jun 20, 2001
115
GB
How can I check for errors logged on Solaris 8?

Dave
 
Depends.
Try /var/log/syslog or for hardware errors dmesg often includes them at the bottom.

Matthew

The Universe: God's novelty screensaver?
 
Most errors are logged in /var/adm/messages by default with mail "debug" messages logged in /var/log/syslog but check the /etc/syslog.conf file to determine what log files are used and what levels (emerg alert crit err warning notice info debug) are recorded.

I hope that helps.

Mike
 
This is my syslog.conf file. Do I presume correctly that if I want to log panics, I have to add a line like:

*.emerg /var/adm/messages

Code:
#ident  "@(#)syslog.conf        1.5     98/12/14 SMI"   /* SunOS 5.0 */
#
# Copyright (c) 1991-1998 by Sun Microsystems, Inc.
# All rights reserved.
#
# syslog configuration file.
#
# This file is processed by m4 so be careful to quote (`') names
# that match m4 reserved words.  Also, within ifdef's, arguments
# containing commas must be quoted.
#
*.err;kern.notice;auth.notice                   /dev/sysmsg
*.err;kern.debug;daemon.notice;mail.crit        /var/adm/messages

*.alert;kern.err;daemon.err                     operator
*.alert                                         root

*.emerg                                         *

# if a non-loghost machine chooses to have authentication messages
# sent to the loghost machine, un-comment out the following line:
#auth.notice                    ifdef(`LOGHOST', /var/log/authlog, @loghost)

mail.debug                      ifdef(`LOGHOST', /var/log/syslog, @loghost)

#
# non-loghost machines will use the following lines to cause "user"
# log messages to be logged locally.
#
ifdef(`LOGHOST', ,
user.err                                        /dev/sysmsg
user.err                                        /var/adm/messages
user.alert                                      `root, operator'
user.emerg                                      *
)
Thanks,
Dave
 
Looks good to me. A couple of things to note, firstly that /etc/syslog.conf is a <tab> separated file (Do Not use spaces) and secondly that by default /usr/lib/newsyslog runs from root crontab every Sunday to "housekeep" /var/adm/messages* files.

I hope that helps.

Mike
 
Thanks for all the help.

Regards,
Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top