A simple shell script to analyze Nginx access log files and display the top 5 most frequent entries for IP addresses, requested paths, HTTP status codes, and user agents.
- Top 5 IP addresses with the most requests
- Top 5 most requested paths
- Top 5 response status codes
- Top 5 user agents
- Linux or macOS terminal
- Bash shell
- Basic Unix utilities:
awk,sort,uniq,head
- Clone this repository or download the script.
- Place your Nginx log file in the same directory and name it
nginxLogFile(or update the script to match your log filename).