代码之家  ›  专栏  ›  技术社区  ›  Raudel Ravelo

如何在应用洞察中创建一个仅按客户端操作系统名称分组的Azure Kusto查询(操作系统版本已删除)?

  •  0
  • Raudel Ravelo  · 技术社区  · 6 年前

    我想要什么

    按客户端操作系统(无操作系统版本=仅操作系统名称)和周分组的页面视图数。

    我所拥有的 - Kusto查询:

    pageViews
    |where timestamp > ago(90d)
    |summarize Browser_hits = count() by Date = startofweek(timestamp), client_Browser
    |sort by Date   
    |render timechart
    

    这个查询的问题是,客户机OS名称与其中的版本一起出现,并分别以不同的版本分组结束(见下图)。

    enter image description here

    更新

    这和我需要的差不多,但它赢了 t work for any names, I 我只是举个例子来说明这个问题。

    pageViews
    |where timestamp > ago(90d)
    |summarize Browser_hits = count() by Date = startofweek(timestamp), BrowserNameTrimed = substring(client_Browser,0,5)
    | sort by Date   
    | render timechart
    

    通过前面的查询,我得到了这个(有点欺骗):

    enter image description here

    1 回复  |  直到 6 年前
        1
  •  1
  •   Yoni L.    6 年前

    这行吗?(使用“浏览器名称+浏览器版本”组合分析浏览器名称 parse 操作员):

    pageViews
    | where timestamp > ago(90d)
    | summarize Browser_hits = count() by Date = startofweek(timestamp), client_Browser
    | parse kind=regex client_Browser with client_Browser @" \d+" *
    | render timechart
    
    推荐文章