title: Get Requests count per IP per request in Nginx access.log
body: <p>I have unix server running nginx <strong>Debian GNU/Linux 9</strong></p>
  <p>I am trying to get requests count per IP per request in Nginx access.log file for analysis, so
  I have 2 questions:</p>
  <ol>
  <li>is there a unix command to fetch this info from the log file (the whole file), per ip per request?</li>
  <li>also is it possible to filter it by date?, i mean get the requests count per IP per request in a certain day. so hopefully i get something like this</li>
  </ol>
  <blockquote>
  <pre><code>IP        count
  127.0.0.1 4
  127.0.0.2 5
  127.0.0.3 6
  </code></pre>
  </blockquote>
  <p>i found this, but it just counts ips</p>
  <pre><code>sudo awk '{print $1}' /var/log/nginx/access.log | sort | uniq -c | sort -nr
  </code></pre>