Shaun
Shaun

Reputation: 1601

RegEx to Match Query String on App Engine Console Log

I am trying to use labels within the app engine console to search for url pattern:

/path?company_id=1234

I am using the label filter:

querystring:/(company_id=1234)

I get nothing back even though I can see it in the log, can someone explain what I am doing wrong here? I tried it in a RegEx checker and it works. Thanks!

Upvotes: 1

Views: 247

Answers (2)

Deviling Master
Deviling Master

Reputation: 3113

If the parameter you're filtering on is not the only one, you need to use a wildcard, like this

querystring:.*company_id=1234.*

Also, you don't need to add the / or the brackets

Upvotes: 1

Jesse
Jesse

Reputation: 8393

Rather, than using the legacy appengine console you're probably better off diving into the cloud console. The log viewer has been much improved: https://console.developers.google.com

The following should just work for you:

querystring:company_id=1234

Upvotes: 0

Related Questions