grep(1) -iC 2 'ERROR' /var/log/mxh.lol
print lines matching a pattern
-i, --ignore-case
       Ignore case distinctions in both the PATTERN and the input files.  (-i is specified by POSIX.)
-C NUM, -NUM, --context=NUM
       Print NUM lines of output context.  Places a  line  containing  a  group  separator  (--)  between
       contiguous  groups  of  matches.   With the -o or --only-matching option, this has no effect and a
       warning is given.
grep searches the named input FILEs (or standard input if no files are named, or if a single hyphen-minus
(-) is given as file name) for lines containing a match to the given PATTERN.  By  default,  grep  prints
the matching lines.
source manpages: grep