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

2011-03-21 Thread Alexander Farber
Thank you for your replies. I've ended up doing the following for my PHP and Drupal logs: Uncommented error_log = /var/log/php/php_errors.log in /etc/php.ini # mkdir /var/log/php # chown -R apache.apache /var/log/php Appended following line to /etc/syslog.conf local6.* /var/log/php/drupal.log

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

2011-03-21 Thread Brunner, Brian T.
centos-boun...@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

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

2011-03-20 Thread Alexander Farber
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

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

2011-03-20 Thread Markus Falb
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

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

2011-03-20 Thread Damian Tommasino
: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

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

2011-03-20 Thread Nico Kadel-Garcia
On Sun, Mar 20, 2011 at 10:18 AM, Damian Tommasino dtommas...@tradecard.com wrote: 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). And if you've got a tweaked, older