« Owls | Main | Puzzle #03 »

July 10, 2006

AIX: Where is the system log?

Q: I found syslog.conf so I went looking for the syslog file but I can't find it...

A: The first problem is that syslog.conf exists but the important entries are commented out. The second problem is that uncommenting them will not create the log file (you have to do that by hand). The third problem is that the default log file is in /tmp instead of somewhere useful (like /var/log or /var/adm).

The relevant part of my syslog file looks like:

kern.info /dev/console
*.info;mail.none;authpriv.none /var/log/messages rotate size 50k files 5
authpriv.info /var/log/secure rotate size 50k files 3
mail.info /var/log/maillog rotate size 50k files 3
*.crit *
*.crit @log-server

If you want to use this, make sure you create the log files:

mkdir -p /var/log
touch /var/log/messages
touch /var/log/secure
touch /var/log/maillog

Posted by Ozguru at July 10, 2006 06:00 AM


You seem to be having fun with Ain't UNix...

Posted by: Kathy K at July 10, 2006 11:53 PM

Left comment yesterday re: AIX. Did not appear. If this comment does, will re-post.

Posted by: Chief at July 30, 2006 11:10 PM

Surprising how much one forgets. I was an AIX Sys Admin (I had some IBM certifications) on AIX 4.3.x until I retired 3.5 years ago. I recognize terms like smit, touch, mkdir etc. But my cookbook et al left home long ago.

Not too many AIX folks out there.

Posted by: Chief at August 1, 2006 01:03 AM