分类: LINUX
2008-10-07 18:07:24
You could get your syslog.conf to point to a pipe instead of the messages file and then have a job running that reads from the pipe greps out any messages you dont want and then writes any other messages to the messages file! eg :
*.info
|/var/adm/syslog.pipe
#!/bin/ksh
cat /var/adm/syslog.pipe | grep -v "denied update from" | while read LINE
do
echo $LINE >>/var/adm/denied_update.log
done