Grok parsing and skipping lines

I would try an approach like this.