Welcome! Log In Create A New Profile

Advanced

Re: syslog patch and 0.7.x

Marlon de Boer
September 04, 2009 11:38AM
Joe Williams wrote:
> I got it to compile with the patch by removing "-Wall" and "-Werr"
> references from "auto/cc/gcc" but it doesn't seem to log anything. I
> still see output to the normal nginx logs but nothing to my rsyslog
> server. Is there any additional configuration or switches I need to get
> this rolling? I did the configure with '--with-syslog'.
>
> Thanks.
> -Joe
>
>

I just use the following in nginx (any file will do because it wouldn't
use it):

access_log /var/log/nginx/access_fifo main;
error_log /var/log/nginx/error_fifo error;

and in syslog-ng (useful part):

filter f_nginx_access { program("nginx") and level(notice); };
filter f_nginx_error { program("nginx") and level(crit); };

destination nginx_access { tcp("loghost");
file("/var/log/nginx/access_log"); };
destination nginx_error { tcp("loghost");
file("/var/log/nginx/error_log"); };

log { source(src); filter(f_nginx_access); destination(nginx_access); };
log { source(src); filter(f_nginx_error); destination(nginx_error); };

Regards
Marlon
Subject Author Posted

syslog patch and 0.7.x

Joe Williams September 03, 2009 01:04PM

Re: syslog patch and 0.7.x

Joe Williams September 03, 2009 03:28PM

Re: syslog patch and 0.7.x

Marlon de Boer September 03, 2009 04:02PM

Re: syslog patch and 0.7.x

Joe Williams September 03, 2009 04:30PM

Re: syslog patch and 0.7.x

Joe Williams September 03, 2009 04:58PM

Re: syslog patch and 0.7.x

Marlon de Boer September 03, 2009 05:58PM

Re: syslog patch and 0.7.x

Joe Williams September 03, 2009 07:54PM

Re: syslog patch and 0.7.x

Marlon de Boer September 04, 2009 11:38AM

Re: syslog patch and 0.7.x

Joe Williams September 04, 2009 01:56PM

Re: syslog patch and 0.7.x

Marlon de Boer September 04, 2009 03:30PM

Re: syslog patch and 0.7.x

Nam November 17, 2009 02:05AM

Re: syslog patch and 0.7.x

Marlon de Boer November 17, 2009 03:18AM

Re: syslog patch and 0.7.x

Nam November 17, 2009 05:34AM

Re: syslog patch and 0.7.x

Jean-Baptiste Quenot November 23, 2009 06:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 310
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready