[syslog-ng] Apache vhost logs

Josu Lazkano josu.lazkano at barcelonamedia.org
Thu Jul 14 12:55:01 CEST 2011


Thanks!!!

With This configuration it Works great:

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

log {
        source(s_all);
        destination(extern);
};

Best regards.

-----Mensaje original-----
De: syslog-ng-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu] En nombre de Gergely Nagy
Enviado el: jueves, 14 de julio de 2011 12:29
Para: Syslog-ng users' and developers' mailing list
Asunto: Re: [syslog-ng] Apache vhost logs

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]

______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq



More information about the syslog-ng mailing list