RegEx to Match Query String on App Engine Console

2019-07-28 23:43发布

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!

2条回答
做个烂人
2楼-- · 2019-07-28 23:52

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
查看更多
祖国的老花朵
3楼-- · 2019-07-28 23:54

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

查看更多
登录 后发表回答