AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides capabilities to interact with Azure Data Explorer (ADX) clusters. It enables users to discover database resources, retrieve table schemas, and execute Kusto Query Language (KQL) queries for log, telemetry, and time series analysis. The skill includes patterns for data retrieval, aggregation, and cross-dataset correlation, along with a fallback strategy using Azure CLI for query execution.
What it does
- Lists Azure Data Explorer clusters and databases within a subscription
- Retrieves table schema information to assist in query construction
- Executes KQL queries for data analysis and reporting
- Supports time series analysis and anomaly detection patterns
- Provides a fallback mechanism using Azure CLI for query execution
- Facilitates cross-dataset analysis using join and union operations
When to use it
- When performing log analytics on application or system logs
- When analyzing IoT sensor data or device telemetry
- When conducting security event correlation or threat detection
- When investigating application performance metrics
- When you need to locate tables across multiple candidate clusters or databases
Advantages
- Enables structured exploration of complex data models
- Supports advanced data aggregation and time-based filtering
- Includes specific patterns for locating data across distributed resources
- Provides robust fallback options for query execution
Usage examples
- “List all databases in my cluster named production-logs.”
- The agent uses kusto_database_list to retrieve and display the databases available within the specified cluster.
- “Get the schema for the Events table in my telemetry database.”
- The agent uses kusto_table_schema_get to return the column names and data types for the requested table.
- “Run a query to count events by type in the last hour.”
- The agent executes a KQL query using kusto_query that filters by timestamp and summarizes the event counts.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/microsoft/azure-kusto/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip azure-kusto.zip -d .agents/skills
Documentation by Microsoft
Azure Data Explorer (Kusto) Query & Analytics
Execute KQL queries and manage Azure Data Explorer resources for fast, scalable big data analytics on log, telemetry, and time series data.
Overview
This skill enables querying and managing Azure Data Explorer (Kusto), a fast and highly scalable data exploration service optimized for log and telemetry data. Azure Data Explorer provides sub-second query performance on billions of records using the Kusto Query Language (KQL).
Key capabilities:
Query Execution: Run KQL queries against massive datasets
Schema Exploration: Discover tables, columns, and data types
Resource Management: List clusters and databases
Analytics: Aggregations, time series, anomaly detection, machine learning
Core Workflow
Discover Resources: List available clusters and databases in subscription. If the target table's location is unknown and multiple candidate clusters, databases, or Log Analytics workspaces exist, batch the search (see Pattern 6) and only report "not found" after all candidates are checked.
Explore Schema: Retrieve table structures to understand data model
Query Data: Execute KQL queries for analysis, filtering, aggregation
Analyze Results: Process query output for insights and reporting
Query Patterns
Pattern 1: Basic Data Retrieval
Fetch recent records from a table with simple filtering.
Example KQL:
Events
| where Timestamp > ago(1h)
| take 100Use for: Quick data inspection, recent event retrieval
Pattern 2: Aggregation Analysis
Summarize data by dimensions for insights and reporting.
Example KQL:
Events
| summarize count() by EventType, bin(Timestamp, 1h)
| order by count_ descUse for: Event counting, distribution analysis, top-N queries
Pattern 3: Time Series Analytics
Analyze data over time windows for trends and patterns.
Example KQL:
Telemetry
| where Timestamp > ago(24h)
| summarize avg(ResponseTime), percentiles(ResponseTime, 50, 95, 99) by bin(Timestamp, 5m)
| render timechartUse for: Performance monitoring, trend analysis, anomaly detection
Pattern 4: Join and Correlation
Combine multiple tables for cross-dataset analysis.
Example KQL:
Events
| where EventType == "Error"
| join kind=inner (
Logs
| where Severity == "Critical"
) on CorrelationId
| project Timestamp, EventType, LogMessage, SeverityUse for: Root cause analysis, correlated event tracking
Pattern 5: Schema Discovery
Explore table structure before querying.
Tools: kusto_table_schema_get
Use for: Understanding data model, query planning
Pattern 6: Batch Search Across Candidate Sources
When a table's location is unknown and there are several candidate clusters, databases, or workspaces, batch read-only metadata discovery instead of querying candidates one at a time. List tables in each candidate database or workspace and match the exact table name before querying data.
After confirming which sources contain the table, query those sources together when needed:
union workspace('ws1').Requests, workspace('ws2').Requests
| take 1Use for: Locating a table among many candidate resources without confusing an empty result with a missing table
Key Data Fields
When executing queries, common field patterns:
Timestamp: Time of event (datetime) - use
ago(),between(),bin()for time filteringEventType/Category: Classification field for grouping
CorrelationId/SessionId: For tracing related events
Severity/Level: For filtering by importance
Dimensions: Custom properties for grouping and filtering
Result Format
Query results include:
Columns: Field names and data types
Rows: Data records matching query
Statistics: Row count, execution time, resource utilization
Visualization: Chart rendering hints (timechart, barchart, etc.)
KQL Best Practices
🔵 Query Patterns:
Use
summarizefor aggregations instead ofcount()aloneUse
bin()for time bucketing in time seriesUse
projectto select only needed columnsUse
extendto add calculated fields
🟡 Common Functions:
ago(timespan): Relative time (ago(1h), ago(7d))between(start .. end): Range filteringstartswith(),contains(),matches regex: String filteringparse,extract: Extract values from stringspercentiles(),avg(),sum(),max(),min(): Aggregations
Best Practices
Filter early with time range filters to optimize query performance and use indexed columns first
Use
takeorlimitfor exploratory queries to avoid large result setsLeverage
summarizefor aggregations instead of client-side processingStore frequently-used queries as functions in the database
Use materialized views for repeated aggregations
Monitor query performance and resource consumption
Apply data retention policies to manage storage costs
Use streaming ingestion for real-time analytics (< 1 second latency)
Integrate with Azure Monitor for operational insights
MCP Tools Used
| Tool | Purpose |
|---|---|
kusto_cluster_list | List all Azure Data Explorer clusters in a subscription |
kusto_database_list | List all databases in a specific Kusto cluster |
kusto_query | Execute KQL queries against a Kusto database |
kusto_table_schema_get | Retrieve schema information for a specific table |
Required Parameters:
subscription: Azure subscription ID or display namecluster: Kusto cluster name (e.g., "mycluster")database: Database namequery: KQL query string (for query operations)table: Table name (for schema operations)
Optional Parameters:
resource-group: Resource group name (for listing operations)tenant: Azure AD tenant ID
Fallback Strategy: Azure CLI Commands
If Azure MCP Kusto tools fail, timeout, or are unavailable, use Azure CLI commands as fallback.
CLI Command Reference
| Operation | Azure CLI Command |
|---|---|
| List clusters | az kusto cluster list --resource-group <rg-name> |
| List databases | az kusto database list --cluster-name <cluster> --resource-group <rg-name> |
| Show cluster | az kusto cluster show --name <cluster> --resource-group <rg-name> |
| Show database | az kusto database show --cluster-name <cluster> --database-name <db> --resource-group <rg-name> |
KQL Query via Azure CLI
For queries, use the Kusto REST API or direct cluster URL:
az rest --method post \
--url "https://<cluster>.<region>.kusto.windows.net/v1/rest/query" \
--body "{ \"db\": \"<database>\", \"csl\": \"<kql-query>\" }"When to Fallback
Switch to Azure CLI when:
MCP tool returns timeout error (queries > 60 seconds)
MCP tool returns "service unavailable" or connection errors
Authentication failures with MCP tools
Empty response when database is known to have data
Common Issues
Access Denied: Verify database permissions (Viewer role minimum for queries)
Query Timeout: Optimize query with time filters, reduce result set, or increase timeout
Syntax Error: Validate KQL syntax - common issues: missing pipes, incorrect operators
Empty Results: Check time range filters (may be too restrictive), verify table name
Table Location Unknown: Use Pattern 6 to batch-search all candidate sources before concluding the data does not exist
Cluster Not Found: Check cluster name format (exclude ".kusto.windows.net" suffix)
High CPU Usage: Query too broad - add filters, reduce time range, limit aggregations
Ingestion Lag: Streaming data may have 1-30 second delay depending on ingestion method
Use Cases
Log Analytics: Application logs, system logs, audit logs
IoT Analytics: Sensor data, device telemetry, real-time monitoring
Security Analytics: SIEM data, threat detection, security event correlation
APM: Application performance metrics, user behavior, error tracking
Business Intelligence: Clickstream analysis, user analytics, operational KPIs
Files
- ATTRIBUTION.mdAdded by AutoGineer965 B
- LICENSELicence file added by AutoGineer1.1 KiB
- SKILL.md8.4 KiB
LICENSE
MIT License Copyright 2025 (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs a command-line tool
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Microsoft
- Publisher
- Microsoft (Official)
- Source
- microsoft/skills · .github/plugins/azure-skills/skills/azure-kusto · commit 0696600
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from .github/plugins/azure-skills/LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
- Also distributed in
- microsoft/azure-skills
AutoGineer is not affiliated with or endorsed by Microsoft or Microsoft.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download azure-kusto.zip