probably at the beach
probably at the beach

Reputation: 15217

searching over multiple lines in the google appengine logs

I wanted to use a regular expression that covers multiple lines to search in the google appengine log console. I've tried:

 firstpart.*\n(.*\n)+.*secondpart
 firstpart.*$(.*$)+.*secondpart

but neither of these work. Does anyone know if this is possible?

Thanks, Richard

Upvotes: 0

Views: 406

Answers (2)

probably at the beach
probably at the beach

Reputation: 15217

\n will work when searching inside the logs but not between the top line of the log of the form

 2011-06-23 10:07:24.522 /users/action?key=agl5cmVjZWlwdHNyEgsmljZRjR5YQDDA 302 ....

and the rest of the logs

Upvotes: 0

Jamie
Jamie

Reputation: 1657

Not sure if I'm understanding the question correctly, but to search for line breaks you should use \r\n as opposed to just \n.

Upvotes: 0

Related Questions