The syslog.conf on my AIX 6.1 System

babyb00mer
babyb00mer used Ask the Experts™
on
I have the following entries in the /etc/syslog.conf file on an AIX 6.1 system...

kern.debug      /var/adm/syslog/kern    rotate files 12 time 1m
user.debug      /var/adm/syslog/user    rotate files 12 time 1m
mail.debug      /var/adm/syslog/mail    rotate files 12 time 1m
daemon.debug    /var/adm/syslog/daemon  rotate files 12 time 1m
auth.debug      /var/adm/syslog/auth    rotate files 12 time 1m
syslog.debug    /var/adm/syslog/syslog  rotate files 12 time 1m
lpr.debug       /var/adm/syslog/lpr     rotate files 12 time 1m
news.debug      /var/adm/syslog/news    rotate files 12 time 1m
uucp.debug      /var/adm/syslog/uucp    rotate files 12 time 1m
*.debug @xxx.xxx.xxx.xxx

Open in new window

My understanding is that the last statement will send all .debug messages to the syslog daemon running on the system at the address specified by xxx.xxx.xxx.xxx. Furthermore, the preceding nine lines have no bearing on the last line. In other words, the last line does not require the preceding lines. Is that correct?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2013
Top Expert 2013
Commented:
Hi,

in syslog.conf each line stands for itself and is in no way related to other lines.

So you're right, syslogd will write all the configured logfiles locally and will additionally send everything from all facilities at the debug level (the most verbose one) to the syslog server at address xxx.xxx.xxx.xxx

The last line does not need the preceding ones, and neither does any of the lines need any of the other lines to function.

wmp

Author

Commented:
I just have a follow-up question...

Do the files defined in the syslog.conf file as destinations need to be created before they can be used, or will the syslog daemon create them on-the-fly?
Most Valuable Expert 2013
Top Expert 2013

Commented:
Yes, that's mandatory!

You must create the logfiles ("touch", for example) before restarting syslogd, else nothing will be written at all.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial