[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: syslog



Sumo Wrestler (or just ate too much) on 12/04/06 23:20, wrote:
Adam Hardy wrote:
I tried excluding it via /etc/syslog,conf, but I don't know which facility.priority it is being logged with.

How can I find out?

I recently had much fun (sarcasm) doing this. The only way I could find was to create separate logfiles for each facility:

auth.*            -/root/tmp/auth
authpriv.*        -/root/tmp/authpriv
cron.*            -/root/tmp/cron
[ ... many more as such ... ]

After I found out what facility was logging, I commented out the above lines and added priority lines for that facility:

daemon.=emerg        -/root/tmp/daemon.emerg
daemon.=alert        -/root/tmp/daemon.alert
daemon.=crit        -/root/tmp/daemon.crit
[ ... many more as such ... ]

After I found out what priority the logging had, I commented out those lines but left them in place in case I'd ever need them again.

There appears to be no way to change the format of the logging output.

What would be ideal is to be able to include the facility and the priority in the logging statement.



Reply to: