2

I'm using Kusto API to query logs from 2 tables, however they are in 2 different databases which are in different clusters and therefore have different endpoints (I can't modify the clusters). I would like to know if it's possible to use Kusto API to query logs from both tables

koonig
  • 67
  • 4

1 Answers1

1

regardless of which client library/tool you're using, and as long as you have read-permissions to both databases - you can include a reference to a database in a different cluster within the query text.

for example, run the following query on database database1 on cluster cluster1.westus:

union withsource = T
   Table1, // this is in 'database1' in 'cluster1.westus'
   cluster("cluster2.westus2").database("database2").Table2,
   cluster("cluster2.centralus").database("database3").Table3
| where Timestamp > ago(1h)
| summarize count() by T
Yoni L.
  • 22,627
  • 2
  • 29
  • 48