grepをパイプで繋ぐとバッファに保存されて、リアルタイムに出ないので、--line-bufferedってのを使います tail -f /var/log/httpd/access_log | grep --line-buffered "error" | grep --line-buffered 'HTTP/1.1\" 50' Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informationYou can use dark themeWhat you can do with signing up