There’s a couple of great tutorials on securing one’s server using limit_req. They both mention and assume that logging is setup in the following way.
2013/08/23 04:17:03 [error] 256554#0: *99927 limiting requests, excess: 1.852 by zone "one", client: 18.104.22.168, server: example.com, request: "GET /wp-login.php HTTP/1.0", host: "exmaple.com"
It’s my understanding that my logs would look like this if I was using EasyEngine. But I am not. Could someone help me understand what I need to do to accurately setup my logs. I can only find very little logging format on the internet. I’d also only want to change the log format for the requests that were limited by limit_req and not all requests in that location block. Please advise.