Filtering log file

I have inserted a database log file into elasticsearch and viewed in kibana, now when i search for a error it justs matches those lines and displays , but i want the matched line and also the next consecutive lines of the error . All the consecutive lines will have the same code which is embed in those lines . so is there any way that i can retrieve those lines without typing the code in the searchbox of kibana.

please provide matching error line and consecutive lines example. without these its incomplete to suggest.