Hands-on task
This task is step 8 of the course “Logs: analysis and housekeeping”
Average Response Time
In /var/log/app/times.log each line is a response time in milliseconds (one number). Compute the average (integer, rounded down) and write it into /root/avg.txt.
Reference:awk
What you'll practise:
- log aggregation
- awk
- average
- int rounding
- NR