Linux: Investigate an Incident in the Logs
The app had errors overnight. Use the shell to find out how many, from which clients, and archive the evidence.
Tasks
- Count the ERROR lines in /var/log/webasha/app.log and save just the number to ~/error-count.txt.
- Save the unique client IPs (2nd column), sorted, to ~/ips.txt.
- Archive /var/log/webasha into ~/logs.tar.gz.