Filter lines matching a regex


I am in search of a command or package that will allow me to copy all lines in a buffer matching a regex and open them in a new buffer window. This is essential for log file parsing.

Any tips / tricks / links on how I can accomplish this would be much appreciated. Thanks!