Tail a Live Incident
Filter streaming application logs in real time without losing events.
A intermediate Linux challenge worth 10 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.
The Challenge
The payment service is throwing 500s right now. Logs stream at 200 lines/second to /var/log/app/payment.log. You need only ERROR lines, captured to a file.
Your tasks:
- Use tail -f piped to grep --line-buffered to filter ERROR lines live
- Redirect output to /tmp/incident.log using tee (so you can watch and capture)
- Run the pipeline in the background with nohup so it survives terminal disconnect
- Verify /tmp/incident.log is being written with tail /tmp/incident.log
- Run check to validate