[syslog-ng] Apache vhost logs

Gergely Nagy algernon at balabit.hu
Thu Jul 14 11:40:15 CEST 2011


Josu Lazkano <josu.lazkano at barcelonamedia.org> writes:

> Thanks!!!
>
> This work for me, las question.
>
> Is possible to add a facility name on apache to archive on the logserver as "apache" file?

Facilities are transmitted as numbers over the wire. Using the CustomLog
suggested by Matias, you could do something like this on server side:

filter f_local5 { facility(local5); };
destination d_apache { file("/var/log/apache.log"); };
log { source(s_all); filter(f_local5); destination(d_apache); };

(Not tested, but should work nevertheless)

-- 
|8]



More information about the syslog-ng mailing list