Ravi Sir's Cards › AWS
Follow live logs
This revision card explains Follow live logs. It starts from the need that see errors the moment they happen. It describes tail -F keeps going after rotation. The how-to section notes save and see at once with tee. An example on the card is follow and filter errors.
Read card text
What this card says
Why do we need it?
See errors the moment they happen.
What is it?
tail -F keeps going after rotation.
How to do it
Save and see at once with tee.
df -h | tee disk.txt
Example
Follow and filter errors.
tail -F app.log | grep ERROR