Default location for System logs & How to Enable it
Hi.,
i want to know where the System logs will get generate for my Solaris Sparc 9 server.i found a syslog file on the /var/adm/log directory
but the file is empty and my server is UP for last 4 days
Is there any file where i need to enable logging. If So which file I need to Edit and how can I restart the logging service without affecting my producion server.
Thanks & Regards
Suseendran .A
# 1
> Hi.,
>
> i want to know where the System logs will get
> generate for my Solaris Sparc 9 server.
Most things will go do /var/adm/messages by default.
> i found a
> syslog file on the /var/adm/log directory
That would be unusual, normally nothing is in that directory, but there is normally a /var/log/syslog. That doesn't tend to have much in it besides sendmail.
> but the file is empty and my server is UP for last 4
> days
>
> Is there any file where i need to enable logging. If
> So which file I need to Edit and how can I restart
> the logging service without affecting my producion
> server.
You should look at the man page for syslog.conf
--
Darren
# 2
Hi Darren.,
here i attached the my syslog.conf file
Tell me whether I need to make any change
#ident "@(#)syslog.conf1.598/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
*.alertroot
*.emerg*
# if a non-loghost machine chooses to have authentication messages
# sent to the loghost machine, un-comment out the following line:
#auth.noticeifdef(`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 *
)
Regards
Suseendran .A
# 3
> Hi Darren.,
>
> here i attached the my syslog.conf file
> Tell me whether I need to make any change
Whether you need to change depends on what you're logging and where you want it to go.
Look through the files mentioned and see if they have the data you seek.
--
Darren