tail -f は定番
tail -f /var/log/apache2/access.log
grep もよくやる
grep hostname /var/log/apache2/access.log
tail -f grep は合わせて使える
知らなかった。tail -f ってそのままパイプに渡しててもチャントSTDINのREAD待ちでパイプがブロックIOになるんですね
tail -f /var/log/apache2/access.log | grep hostname
便利!!
参考資料
http://unix.stackexchange.com/questions/3229/grep-and-tail-f