Thanks for the information.
Could you please let me know if there is any field in filebeat or logstash based on which we can sort the lines in the a particular file.
Based on the line selected we should be able to filter number of lines above and below that line in the file.