Welcome! Log In Create A New Profile

Advanced

Re: Turning off access_logs for Load Balancer TCP port checks

Zev Blut
February 22, 2010 05:44AM
Here is a bit more info:

On 02/22/2010 06:55 PM, Zev Blut wrote:
> Hello,
>
> We have load balancers that are doing port checks on our NGINX servers.
> Each of these checks creates an entry in our log file like this:
>
> 10.0.0.58 - - [22/Feb/2010:18:50:21 +0900] "-" 400 0 "-" "-" 0.000 "-"
> "-" "-" [-] - - - [-] [-]
>
> Does anyone have an idea of how I can stop logging these requests?
> I have tried
>
> location / {
> if ($remote_addr ~* 10\.0\.0.\.i.+) {
> access_log off;
> }
> }
>
> But this does not work. I have also tried putting the if and access_log
> check in the http directive. But access_log commands are not allowed
> there. So we might want to update the context docs here.
> http://wiki.nginx.org/NginxHttpLogModule
> Also, I am using Nginx 0.7.65

The error log gets messages like this:

2010/02/22 19:37:35 [info] 30830#0: *4 recv() failed (104: Connection
reset by peer) while reading client request line, client: 10.0.0.59,
server: example.com

Thanks,
Zev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Turning off access_logs for Load Balancer TCP port checks

Zev Blut February 22, 2010 05:02AM

Re: Turning off access_logs for Load Balancer TCP port checks

Zev Blut February 22, 2010 05:44AM

Re: Turning off access_logs for Load Balancer TCP port checks

Maxim Dounin February 22, 2010 06:48AM

Re: Turning off access_logs for Load Balancer TCP port checks

Zev Blut February 22, 2010 07:04AM

Re: Turning off access_logs for Load Balancer TCP port checks

Zev Blut February 23, 2010 03:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 305
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