in reply to how to search 3 different patterns from a file

I don't know why you subject line says you're searching for 3 patterns, while your question involves just 2.

Anyway, it would look to me that if you just filter out the lines that contain / Note;/, you're almost home. In fact, you seem to want everything from "Note;" till the end of line. You can try this:

local $\ = "\n"; while(<>) { if(/ (Note;.*)/) { print $1; } }

You can put this in a script on its own, pass the path of the log file as a parameter, and see what you get — both in speed, and in filter results.