Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to enable syslog on AIX. I followed the instructions in this post but it didn't work.

This is my /etc/syslog.conf:

mail.debug      /var/log/mail.log   rotate size 500k files 10
kern.debug      /var/log/kern.log   rotate size 500k files 10
syslog.debug    /var/log/syslog.log rotate size 500k files 10
daemon.debug    /var/log/daemon.log rotate size 500k files 10
local2.debug    /var/log/sudo.log   rotate size 500k files 10

I executed this:

refresh -s syslogd

But nothing is showing up in /var/log

I'm on AIX 6.1.

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Syslog files must exist before syslogd will write to them. You will need to touch (as root) the filenames you wish to use first.

touch /var/log/mail.log

touch /var/log/kern.log

...etc

share|improve this answer

If you want to send it to a syslog server as 192.168.1.1 you have to write like this in /etc/syslog.conf

user.info @192.168.1.1 rotate size 100k files 5
syslog.info @192.168.1.1 rotate size 100k files 5
auth.info @192.168.1.1 rotate size 100k files 5
local2.info @192.168.1.1 rotate size 100k files 5

after that don't forget to apply the changes using:

#refresh -s syslogd
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.