gpt4 book ai didi

azure - 在 azure 中,如何在汇总语句中连接字符串?

转载 作者:行者123 更新时间:2023-12-02 22:56:45 26 4
gpt4 key购买 nike

我有一个语句,我尝试将日志(字符串)连接在一起形成一个字符串。

类似这样的事情

ContainerLog
| where conditions
| summarize strcat(LogEntry)

但是我不知道如何连接这样的字符串,因为 strcat 不是聚合函数。我还需要一些东西,但不知道是什么。

我该怎么做?

例如,如果我有日志条目“1”、“2”、“3”,则最终结果应为“123”

最佳答案

这允许混凝土中的独特组合。

requests
| where URL contains "prod"
| summarize count(), code=make_set(resultCode) by name
| sort by count_ desc

Image

引用:https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/summarizeoperator , https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/makeset-aggfunction

关于azure - 在 azure 中,如何在汇总语句中连接字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61230121/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com