How to show only next line after the matched one?

you can try with awk:

awk '/blah/{getline; print}' logfile

Leave a Comment