I am getting following access.log: and are significant in number RequestMethod=- RequestURI=- HTTPStatus=400 BodyBytesSent=0 RequestTime=0.000 ResponseTime=- HTTPReferrer="-" UserAgent="-" X-Forwarded-For=- HTTPStatus=400 Does anyone know why i am getting these empty requests, and how to stop them. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,232321,232321#msg-232321
on 2012-10-29 14:10
on 2012-10-29 14:13
On Oct 29, 2012 8:09 PM, "nilesh" <nginx-forum@nginx.us> wrote: > > I am getting following access.log: and are significant in number > RequestMethod=- RequestURI=- HTTPStatus=400 BodyBytesSent=0 > RequestTime=0.000 ResponseTime=- HTTPReferrer="-" UserAgent="-" > X-Forwarded-For=- HTTPStatus=400 > > Does anyone know why i am getting these empty requests, and how to stop > them. > That's modern browser's keepalive > Posted at Nginx Forum: http://forum.nginx.org/read.php?2,232321,232321#msg-232321
on 2012-10-30 06:14
Thanks for the pointer Edho, right now we are getting these log entries at a rate of 5000 per hour per server, and we have multiple nginx installations, and this is almost flooding our centralized logging system. Is there a way to disable logging such requests, or lower the number of occurrences (like tweaking the keep alive timeout value or number of requests)? thanks in advance ranjib
on 2012-10-30 06:20
On Tue, Oct 30, 2012 at 12:13 PM, Ranjib Dey <dey.ranjib@gmail.com>
wrote:
>
Maybe something like this will work (untested)
error_page 400 /400.html;
location = /400.html {
access_log off;
}
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.