This is another way to quickly analyze nginx logs. It will spit out the top 25 ip’s, domains, requests and some other data. You may need to change the array value to match the format of your nginx logs.
It uses perl so it is very fast and takes just seconds to analyze hundreds of thousands of lines in a log file. It can also be used for apache too or other column whitespaced logs.