Automation & Scripting
Parse the Report
200 pts
0 solves
medium
hands-on
A server metrics log file at /home/challenger/server_metrics.log
contains 1000 lines of monitoring data from 5 web servers
(web01 through web05).
Each line has the format:
YYYY-MM-DD HH:MM:SS [INFO] server=XXXX cpu=NN.N mem=NN.N requests=NNNN errors=N
Your task: Find the server with the highest AVERAGE error count
per log entry. Write just the server name (e.g. "web03") to
/home/challenger/answer.txt.
You can use any tools: awk, grep, sed, sort, Python, etc.
Ready to solve this?
Create a free account to launch containers, submit answers, and track your progress.