strange lines in nginx log

Zaar Hai asked:

I’m running nginx 1.2.6 behind amazon elb.

Periodically I see the following lines in nginx access.log:

10.28.135.252 - - [14/Jan/2013:14:20:07 +0000] "-" 400 0 "-" "-" "-"
10.28.135.252 - - [14/Jan/2013:14:20:07 +0000] "-" 400 0 "-" "-" "-"
10.28.135.252 - - [14/Jan/2013:14:20:14 +0000] "-" 400 0 "-" "-" "-"
10.28.135.252 - - [14/Jan/2013:14:20:14 +0000] "-" 400 0 "-" "-" "-"
10.28.135.252 - - [14/Jan/2013:14:20:18 +0000] "-" 400 0 "-" "-" "-"
10.28.135.252 - - [14/Jan/2013:14:20:48 +0000] "-" 400 0 "-" "-" "-"

There are no errors in the error log.
What can it be?

Thanks.

My answer:


This occurs when a client connects to the web server, but then fails to send a request before disconnecting. It also occurs when a client connects, sends a request with Connection: Keep-Alive set, but disconnects before sending another request. In either case, they can be safely ignored.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.