Posted on April 5, 2020 at 11:46 am
You can count and sort IP addresses in Nginx access logs:
cat access.log | awk '{print $1}' | sort | uniq -c | sort -nr |
Below there is an example output:
612 216.X.X.X 251 54.X.X.X 238 18.X.X.X 147 178.X.X.X 138 106.X.X.X 78 79.X.X.X 64 180.X.X.X 58 217.X.X.X 52 72.X.X.X 48 196.X.X.X 38 146.X.X.X 34 207.X.X.X |
Other Posts
- Set OpenVPN to Listed on a Specific IP Address
- Bash Trim Leading and Trailing Whitespace from a String
- Bash Get Name of Ethernet Network Interface
- VPN Providers with Dedicated Static IP Address
- OpenVPN Iptables Rules
- WireGuard VPN Iptables Rules
- How to Install WireGuard VPN in Debian 10 Buster
- Bash: No space left on device (inodes issue)
Updated Posts
- Add Desktop shortcut for all Windows PC users
- How to pass custom command-lien parameters in InnoSetup
- Programmatically create desktop icon with InnoSetup
- GeneratePress - a Lightweight WordPress Theme 2021
- InnoSetup disable DesktopIcon via command-line
- Use cURL to authenticate with JWT Bearer tokens
- Detect VMWare Virtual Machine
- Detect Microsoft Virtual PC Virtual Machine