Hello im looking for command like this
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
But based on activity from /var/log/nginx/access.log Im aware that access.log can't provide currently handled connections, so the best possible solution will be assumption that currently handled is equal one second in server access log.
Simply, how to display, in the exact same format grouped IP's by N connections made in last 1s in access.log