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%7C1300594844%7Cpage not found|66.249.66.193|http://mysite/sites/default/files/pictures/picture-7133-1300462418.png%7C%7C...
Mar 20 04:20:50 mysite drupal: http://www.mysite%7C1300594850%7Cpage not found|93.158.148.31|http://www.mysite/viewtopic.php?f=5&t=42639&p=165661&sid=7394443...
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