Eventually, any log files contain the lines that are related to each other. Every log parsing task i had so far, I encountered the need to "sneak peek" couple of lines ahead, treat 2 or more lines as a single event, process a line1 if a line2 was found before, otherwise ignore, etc. I implemented it...