Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 3 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

and then refresh syslog

share|improve this answer
1  
you might want to add a sudo (as it is important that the files are owned by root) and add the command for "refreshing syslog"). – agtoever Mar 5 '15 at 10:43
    
I did say "as root", but you could also sudo. – Don Simon Mar 10 '15 at 16:32

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .