Text Processing
Log Surgeon
125 pts
0 solves
medium
hands-on
A web server log file at `~/server.log` contains 500 lines of access logs
in standard Apache/Nginx format.
Analyze it and create `~/report/` with these files:
- `unique_ips.txt`: the total number of **unique IP addresses**
- `errors_404.txt`: the count of **404 Not Found** responses
- `top_ip.txt`: the **most frequent** IP address
*Hint: combine `awk`, `sort`, `uniq -c`, and `wc -l`.*
Ready to solve this?
Create a free account to launch containers, submit answers, and track your progress.