RegEx在App Engine控制台日志上匹配查询字符串 [英] RegEx to Match Query String on App Engine Console Log
本文介绍了RegEx在App Engine控制台日志上匹配查询字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试在应用引擎控制台中使用标签来搜索url模式:
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)
尽管我可以在日志中看到它,但有人能解释我在这里做错了什么吗?我在RegEx检查器中试过它,它工作正常。谢谢!
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!
推荐答案
如果您要过滤的参数不是唯一的参数,则需要使用通配符, p>
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
这篇关于RegEx在App Engine控制台日志上匹配查询字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文