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

Markus Falb markus.falb at fasel.at
Sun Mar 20 14:00:13 UTC 2011


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20110320/944fd04f/attachment.sig>


More information about the CentOS mailing list