1751797 Members
5364 Online
108781 Solutions
New Discussion юеВ

Re: Unix Log

 
pillai
Occasional Contributor

Unix Log

How do I find out where the unix system log is located?

Thanks
Jo
8 REPLIES 8
Tom Geudens
Honored Contributor

Re: Unix Log

Hi Jo,
You'll find most of the logs underneath
/var/adm/syslog
THE system log is :
/var/adm/syslog/syslog.log

Regards,
Tom
A life ? Cool ! Where can I download one of those from ?
Bill McNAMARA_1
Honored Contributor

Re: Unix Log

typically logs are located in
/var/adm/

/var/adm/syslog/syslog.log
also
look in /var/adm/sw/*.log
/var/adm/sulog
/var/adm/shutdownlog
/var/adm/rc.log

etc..

Later,
Bill
It works for me (tm)
Kenneth_19
Trusted Contributor

Re: Unix Log

Believed that the log file you are looking for is /var/adm/syslog/syslog.log.

For startup logs, visit /etc/rc.log.

Regards,
Kenneth
Always take care of your dearest before it is too late
Rory R Hammond
Trusted Contributor

Re: Unix Log

The previous answers are all correct for HPUX.
/var/adm/syslog/syslog.log is controlled by /usr/sbin/syslogd. You will find some installations that divert messages elsewhere. It isn't a bad idea to look at /etc/syslog.conf to see if logging is done elsewhere.

Also many sites have the following crontab entry:
# log kernel diagnostic messages every 10 minutes
05,15,25,35,45,55 * * * * /usr/sbin/dmesg - >>/var/adm/messages

Which collects system diagnostic messages

man dmesg
man syslogd
will give you more info

Ror
There are a 100 ways to do things and 97 of them are right
Bill_Bennett
Member

Re: Unix Log

The UNIX system log (syslog.log) is located: /var/adm/syslog/sysylog.log
and the previous log prior to the last reboot is located: /var/adm/syslog/OLDsysylog.log.

In addition, a list of other log files can be found in SAM:
SAM > Routine Tasks > System Log Files

Regards,
Paul
Michael Tully
Honored Contributor

Re: Unix Log

Generally speaking your system log is located in /var/adm/syslog/syslog.log
In saying that, it does not have to be. It is actually defined from your /etc/syslog.conf file, example below.
The habit of adding the 'dmesg' (system diagnotic messages) regularly to your standard log is a good one.

# more /etc/syslogd.conf
/etc/syslogd.conf: No such file or directory
# more /etc/syslog.conf
# @(#)B.11.11_LR
#
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *

See the man pages for 'dmesg' and 'syslog' and 'syslogd'

There are also various other log files on your system for specific items.
Anyone for a Mutiny ?
PIYUSH D. PATEL
Honored Contributor

Re: Unix Log

Hi,

You will find the system logs under :

/var/adm/syslog/syslog.log
/var/adm/shutdown.log
/var/adm/su.log
/var/adm/rc.log

You can view other messages during the startup of the server by command "dmesg"

Piyush
twang
Honored Contributor

Re: Unix Log

Hi,
I always check syslog.log & rc.log after server reboot, and daily monitor syslog.log and related application logfiles, of course you must configure the syslog to capture the activities you concerned.

regards
tommy