Last Updated: February 25, 2016
·
419
· jlucasps

Simple search for erros on log files

Using 3 lines before and 5 lines after the context:

grep -B 3 -A 5 error log/file.log 

Or using 10 lines for context:

grep -C 10 error log/production.log