Forum Discussion

Consultant1520's avatar
Consultant1520
Copper Contributor
Aug 11, 2020

KQL Query. Arrange the Columns.

I am running the below query and want to rearrange the result columns. 

 

ConfigurationData
| where ConfigDataType == "WindowsServices"
| where (SvcName contains "MSSQL") or (SvcName contains "MSSQLFDLauncher") or (SvcName contains "SQLAgent") or (SvcName == "SQLBrowser")
| where SvcState != "Running"
| where SvcStartupType != "Disabled"
| summarize arg_max(TimeGenerated, *) by Computer, SvcDisplayName , SvcName, SvcState, SvcStartupType, SvcPath
| project Computer, TimeGenerated, SvcDisplayName , SvcName, SvcState, SvcStartupType, SvcPath
 
 
Despite using the "Project",  "Project-reorder"  I am unable to arrange column of "TimeGenerated". In result section "TimeGenerated" appear as first column. However, I want to put it as second column. 
 
PS : We are using this query in alert rules and using alert JSON to do further automation. So we are kind of rigid in placing column position. 
 

 

  • Hi Consultant1520 ,

    This issue is known to us and we have it in our backlog to fix it.

    At this point in time, I can't commit to a timeline as the fix is dependent on other backlog items we are currently working on.

    Please note that you can drag and drop columns in the result set area to control how they are arranged.

    Thanks!

    R

Resources