I have a script that searches for a single pattern, then displays the next few lines. It's not a log file, but more of an ini file. I search for "section-name", etc. & then just prints that section, either n lines, or until xxx is found. If you'd like it, I can put it on my scratch pad.
Good luck. I'm in a heavy learning curve myself. ;-)