rsyslog can do this as well and has a great filtering feature that is available.  rsyslog will (should) be the default logging daemon in CentOS 6 (as it is for RHEL6).

 

 

From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Markus Falb
Sent: Sunday, March 20, 2011 10:00 AM
To: centos@centos.org
Subject: Re: [CentOS] syslog.conf - how to redirect messages by a program name?

 

On 20.3.2011 14:55, Alexander Farber wrote:

> 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:

Classic syslog can not do this. But there are alternative syslogs
available. syslog-ng can filter by program name. I am not sure about
rsyslog.

--
Best Regards, Markus Falb


No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1204 / Virus Database: 1498/3518 - Release Date: 03/20/11