How do I perform a custom sort order in Kusto?
Example query:
//==================================================//
// Assign variables
//==================================================//
let varStart = ago(2d);
let varEnd = now();
let varStorageAccount = 'stgacctname';
//==================================================//
// Filter table
//==================================================//
StorageBlobLogs
| where TimeGenerated between (varStart .. varEnd)
and AccountName == varStorageAccount
| sort by OperationName
Need:
- I want to put the various
OperationNames
(GetBlob
,AppendFile
, etc.) into a custom order. - Something like:
| sort by OperationName['GetBlob'], OperationName['AppendFile'], OperationName asc
- Ideally I'd like to specify values to sort by then allow Kusto to order the remaining using
asc
/desc
.
Is this possible?