Kusto Web Explorer 用于生成可共享链接的编码方式

huangapple go评论58阅读模式
英文:

Encoding used by Kusto Web Explorer to generate shareable links

问题

使用“链接到剪贴板”按钮时,Kusto Web Explorer 用于编码 KQL 查询的编码方式是什么?

例如,查询 'StormEvents | count' 的链接是 'https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAwsuyS/KdS1LzSspVqhRSM4vzSsBALU2eHsTAAAA'。

我尝试对查询参数进行 base64 解码,但解码器报告它是无效的输入。

英文:

Which encoding is used to encode the kql query when using the ‘Link to clipboard’ button on Kusto Web Explorer?

For example, the link for the query 'StormEvents | count' is 'https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAAwsuyS/KdS1LzSspVqhRSM4vzSsBALU2eHsTAAAA'.

I tried base64 decoding the query param, but the decoder complains it is an invalid input.

答案1

得分: 2

这是一种先使用gzip压缩,然后进行base64编码的组合。

如文档所述:https://learn.microsoft.com/en-us/azure/data-explorer/kusto/api/rest/deeplink#specifying-the-query-or-control-command-in-the-uri

英文:

It is a combination of gzip compression followed by base64 encoding.

As mentioned in the documentation: https://learn.microsoft.com/en-us/azure/data-explorer/kusto/api/rest/deeplink#specifying-the-query-or-control-command-in-the-uri

huangapple
  • 本文由 发表于 2023年5月29日 13:59:09
  • 转载请务必保留本文链接:https://go.coder-hub.com/76354971.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定