DEV Community

Jonas Samuelsson
Jonas Samuelsson

Posted on • Edited on

3 2

kusto & concat string array

From time to time I want to summarize a kusto query by a combination of multiple values.

One way to do that is to concat them all manually, like this

strcat(cloud_RoleName, "-", application_Version, "-", resultCode)
Enter fullscreen mode Exit fullscreen mode

During investigations I often want to change which values I group by and writing the query like this simplifies that

strcat_array(pack_array(cloud_RoleName, application_Version, resultCode), "-")
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

AWS Security LIVE!

Hosted by security experts, AWS Security LIVE! showcases AWS Partners tackling real-world security challenges. Join live and get your security questions answered.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️