Hands-on task
This task is step 10 of the course “Monitoring and metrics”
Status Summary from a Log
In the access log /var/log/app/access.log the last field is the HTTP status. Count how many times each status appears and write a summary <status> <count> into /root/status_summary.txt.
What you'll practise:
- awk
- sort
- uniq
- pipeline
- logs