git
ask
hub
Privacy
Terms
Sign in with GitHub
francescobbo/nginx_log_parser
↗
Language ·
Ruby
License ·
MIT
Simplify and Visualize This Repo
Scan the safety of this repo
Self Host this repo
Check out more work of Developer: francescobbo
Ask anything about this repo to start.
Write a Ruby script that reads an Nginx access log file and prints out the IP address, timestamp, requested path, and status code from each line.
I have an Nginx log file, help me use Ruby to parse it and find all lines with a 404 or 500 status code so I can troubleshoot errors.
Using Ruby, parse an Nginx log file and count how many requests each IP address has made, then print the top 10 most active IPs.
Full explanation on explaingit →
📎
Send
By chatting or signing in you agree to the
Terms
and chat-message logging (revocable in
History
).