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

Mon Mar 21 14:41:16 UTC 2011
Brunner, Brian T. <BBrunner at gai-tronics.com>

centos-bounces at centos.org wrote:
> Hello,
> the "man syslog.conf" explains how to filter syslog messages
> But how could I redirect messages by a program name, like
> "drupal" or "php"?  I would like them to go under /var/log/drupal

This 1-liner script needs fired off at system boot.
tail --follow=name --retry /var/log/messages | grep drupal: >

The grep patters might be expanded -E "(drupal|php)"

Insert spiffy .sig here:
Life is complex: it has both real and imaginary parts.

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. If you have received this email in error please
notify the system manager. This footnote also confirms that this
email message has been swept for the presence of computer viruses.
www.Hubbell.com - Hubbell Incorporated**

CentOS mailing list
CentOS at centos.org