[SunHELP] Solaris syslog question

Brian Hechinger sunhelp at sunhelp.org
Tue Mar 27 21:25:52 CST 2001


> I have these two lines in my syslog.conf on my solaris 8 machine:
> 
> mail.debug;mail.info;mail.notice;mail.crit      /var/log/maillog
> *.info                                          /var/log/messages
>
> For some reason, solaris will not log anything to /var/log/maillog,
> however I get mail.info logs in /var/log/messages just fine.  Can anyone
> see what I am doing wrong?  Also, why does solaris refuse to use mail.*?

there is no mail.* because the syslog priorities don't work the way you are
expecting them to.  mail.info means log all messages of priority INFO or higher
which is everything except debug.

so a lot of that is un-needed, try:

mail.debug					/var/log/maillog
*.info;mail.none				/var/log/messages

which will log everything for mail in /var/log/maillog and everything else of
priority INFO or higher EXCEPT mail into /var/log/messages

and make sure you use TABS not spaces.

> I am using syslogd -d to debug config file errors.

i don't use the -d option so i don't know how smart it is.

cheers,

-brian



More information about the SunHELP mailing list