[syslog-ng] Apache vhost logs

Gergely Nagy algernon at balabit.hu
Thu Jul 14 12:29:06 CEST 2011


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

> Perfect!
>
> The last last question, is it posible to NOT write on local5 file?
>
> I have same info on the apache and local5 files.

Yes. Make the log{} block with the d_apache destination the first log{}
block in your config, and add a flags(final) flag to it:

log {
 source(s_all);
 filter(f_local5);
 destination(d_apache);
 flags(final);
};

See the relevant section of the documentation here:
 http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-v3.2-guide-admin-en.html/reference_logflags.html

-- 
|8]



More information about the syslog-ng mailing list