useful-scripts-helpdesk/src/nginx.sh
2022-01-09 20:31:42 +00:00

4 lines
122 B
Bash

#!/bin/bash
echo "- Sort by IP"
cat /var/log/nginx/access.log | awk '{print $1}' | sort | uniq -c | sort -hr | head -n 30