Forum Discussion

jjsantanna's avatar
jjsantanna
Brass Contributor
Jan 29, 2021
Solved

(KQL) Searching for all tables of a customer for MSSPs

Hi guys, I need/want to the number of records in each table (datatype) of a customer (accessed via delegation/lighthouse). So, I would like to perform a search * but restrict it to a specific workspace. The following KQL searchs for the tables in the current workspace (not in a customer's workspaces).

 

search * | summarize count() by $table |sort by count_ 

 

* Note: I didn't find the documentation for the workspace() function (https://docs.microsoft.com/en-us/search/?scope=kusto&terms=workspace

 

I imagine something like the following (but of course it doesn't work)

 

search in (workspace("ABC").*) and *| summarize count() by $table

 

A folloow-up question is on how to restrict the time to the last month (like where TimeGenerated >ago(30d)))

 

Is there anyone with super master of KQL skills to help me? or forwarding this to the dev team?

 

 

 

 

4 Replies

Resources