Get nearby lines after query result

As per our requirement, I have to search a string in ES logs. And, print
five lines before and after the result query.

Is there any way to do that?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.