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

Sun Mar 20 14:18:07 UTC 2011
Damian Tommasino <DTommasino at tradecard.com>

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 at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Markus Falb
Sent: Sunday, March 20, 2011 10:00 AM
To: centos at 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<http://www.avg.com>
Version: 10.0.1204 / Virus Database: 1498/3518 - Release Date: 03/20/11
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20110320/4472753d/attachment-0015.html>