1835237 Members
2256 Online
110078 Solutions
New Discussion

Syslog.conf

 
SOLVED
Go to solution
Robert True
Frequent Advisor

Syslog.conf

Is it possible to config syslog.conf to block a given level of a local fac and not the others?

Currently in syslog.conf I have:

*.info;local3.none

local3.info

Which works, but I would like to see entries other than info in the .

What I wanted was:
local3.info.none
but that does not seem to work.

What would be the syntex if possible?
6 REPLIES 6
S.K. Chan
Honored Contributor

Re: Syslog.conf

Try ..
*.info;local3.info
Are you saying you want syslog.log file to have more than just the "info" level logs ?
Also ..
# man syslogd
for further details ..
Robert True
Frequent Advisor

Re: Syslog.conf

No, what I want for the Local3 is to NOT see the info level in the syslog, but I would like to see any higher level of local3 in the syslog. What I have now is all local3 going to another log.
Tom Maloy
Respected Contributor
Solution

Re: Syslog.conf

Don't ask for info, ask for the next higher level:

local3.notice

Overall, the order is:
EMERG 0
ALERT 1
CRIT 2
ERR 3
WARNING 4
NOTICE 5
INFO 6
DEBUG 7

Tom
Carpe diem!
Robert True
Frequent Advisor

Re: Syslog.conf

Ok, If I understand then, by entering local3. I will see and above in the syslogfile?

Tom Maloy
Respected Contributor

Re: Syslog.conf

Correct. Just like setting a threshold.

Tom
Carpe diem!
Robert True
Frequent Advisor

Re: Syslog.conf

Thanks, Tom. That works about how I want it to work.