我想做,
- 在“2.”中提取 param=1 的“查询”字符串,如下所示。
- 在 Analytics 中获取 pageViews,表格为“3”。
1、pageView中包含的实际url
https://example.com/dir01/?query=apple¶m=1
https://example.com/dir01/?query=apple¶m=1
https://example.com/dir01/?query=lemon+juice¶m=1
https://example.com/dir01/?query=lemon+juice¶m=0
https://example.com/dir01/?query=tasteful+grape+wine¶m=1
2. 预期提取的价值
apple
lemon+juice
tasteful+grape+wine
3. AI Analytics 的预期输出
- 查询参数 | 数数
- 苹果| 高分辨率照片| CLIPARTO 2
- 柠檬+果汁 | 1
- 美味+葡萄+酒| 1
试图做
https://aka.ms/AIAnalyticsDemo
我认为extract
或parseurl(url)
应该有用。我尝试了后者parseurl(url)
,但不知道如何将“查询参数”提取为一列。
pageViews
| where timestamp > ago(1d)
| extend parsed_url=parseurl(url)
| summarize count() by tostring(parsed_url)
| render barchart
url
http://aiconnect2.cloudapp.net/FabrikamProd/
parsed_url
{"Scheme":"http","Host":"aiconnect2.cloudapp.net","Port":"","Path":"/FabrikamProd/","Username":"","Password":"","Query Parameters":{},"Fragment":""}