Kusto Go API query from multiple tables

WBOY
Release: 2024-02-06 09:27:03
forward
1018 people have browsed it

Kusto Go API 从多个表查询

Question content

I am using Kusto API to query the logs in 2 tables, but they are in 2 different databases, which are located in different in a cluster and therefore have different endpoints (I cannot modify the cluster). I want to know if it is possible to query logs from two tables using Kusto API


Correct answer


No matter which client library/tool ​​you use, as long as you have The databases all have read permissions, so you can include references to databases in different clusters in the query text.

For example, run the following query against 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
Copy after login

The above is the detailed content of Kusto Go API query from multiple tables. For more information, please follow other related articles on the PHP Chinese website!

source:stackoverflow.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!