Kusto equivalent of Splunks stats values(*)

Maxo 5 Reputation points
2023-08-11T09:32:13.59+00:00

Hi,

So im running into a problem with kusto where I need to perfom multiple summirize statements on each column I have if I want to achieve a simple equivalent of splunks | stats values(*) by SomeColumn And I would like to see an alternative if there is one.

e.g. in kusto say we have the folowing:

let somedata = datatable (UserName: string, SomeCount: int, SomeOtherPropertie1: string, SomeOtherPropertie2: string)
[
    "Alex", 1, "somedata1", "somedata2",
    "Alex", 2, "somedata11", "somedata22",
    "Alex", 3, "somedata111", "somedata222",
    "Alex", 3, "somedata1111", "somedata2222",
    "Alex", 3, "somedata11111", "somedata22222",
    "John", 3, "somedata111111", "somedata22222",
];
somedata
| summarize myset_c = makeset(SomeCount), myset_sp1 = makeset(SomeOtherPropertie1), myset_sp2 = makeset(SomeOtherPropertie2) by UserName 

User's image

And splunk equivalent of the above, assuming we already have the index somedata

index=somedata
| stats values(*) by UserName 

Will bascally do the same.

Azure Data Explorer
Azure Data Explorer
An Azure data analytics service for real-time analysis on large volumes of data streaming from sources including applications, websites, and internet of things devices.
561 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.