tail -f /var/log/x.log | grep foo -A 20 -B 20
Most of the time.
This is the reason I always share how I do it in hn! LOL