Reputation: 3696
The Kusto operator union *
gets all the tables from a database , but once the data is clubbed together , we have no way to tell which rows came from where. Is there a way to force union *
to add a column to the output that will contain name of the table a specific row came from ?
Upvotes: 3
Views: 3985
Reputation: 6002
You can use withsource
(see in documentation)
union withsource=TableName *
| summarize count() by TableName
| top 2 by count_
Upvotes: 4