[CentOS] syslog.conf - how to redirect messages by a program name?

Sun Mar 20 13:55:34 UTC 2011
Alexander Farber <alexander.farber at gmail.com>

Hello,

the "man syslog.conf" explains how to filter syslog messages
by facility (auth, authpriv, cron, daemon, kern, ... ) or
by priority (debug, info, notice, warning, ...).

But how could I redirect messages by a program name, like
"drupal" or "php"? For example I have in /var/log/messages:

Mar 20 04:20:44 mysite drupal: http://mysite|1300594844|page not
found|66.249.66.193|http://mysite/sites/default/files/pictures/picture-7133-1300462418.png||0||sites/default/files/pictures/picture-71333-1300462418.png

Mar 20 04:20:50 mysite drupal: http://www.mysite|1300594850|page not
found|93.158.148.31|http://www.mysite/viewtopic.php?f=5&t=42639&p=165661&sid=73944439da6ca3054a40f464ce97a628||0||viewtopic.php

but I would like them to go under /var/log/drupal

(and I'll rotate them later by adding a file to /etc/logrotate.d ....)

Regards
Alex
_______________________________________________
CentOS mailing list
CentOS at centos.org
http://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS at centos.org
http://lists.centos.org/mailman/listinfo/centos