syslog-ng-users July 2011 archive
Main Archive Page > Month Archives  > syslog-ng-users archives
syslog-ng-users: Re: [syslog-ng] Apache vhost logs

Re: [syslog-ng] Apache vhost logs

From: Gergely Nagy <algernon_at_nospam>
Date: Thu Jul 14 2011 - 09:40:15 GMT
To: Syslog-ng users' and developers' mailing list <>

Josu Lazkano <> 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] ______________________________________________________________________________ Member info: Documentation: FAQ: