Kusto equivalent of Splunks stats values(*)
Maxo
5
Reputation points
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
And splunk equivalent of the above, assuming we already have the index somedata
index=somedata
| stats values(*) by UserName
Will bascally do the same.
Sign in to answer