On Tue Jun 29 11:31 PM, James Corteciano wrote:
> Hi All,
>
> I know this is out of topic here in mailing list but I couldn't get
> into php mailing list.
>
> Anyone have try to log php errors and forwarded it to centralized
> rsyslog server? I can received logs locally from /var/log/messages
> (specified from
> /etc/php.ini) but I want to forward it to centralized log.
>
- php.ini
error_log = syslog
- possibly don't log all errors, use syslog() on errors you want logged / if
this is for a specific application
http://ca3.php.net/manual/en/function.set-error-handler.php
- configure rsyslog on each 'php server' to log to remote server ~
*.err;*.crit;*.emerg;*.warn;auth.*;user.notice;security.* @log.domain.com
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com