kql-expert

Optimizes and validates Kusto Query Language queries for Microsoft Sentinel and Azure Monitor.

4|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/dstreefkerk/claude-skills --skill kql-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kql-expert
Source: https://github.com/dstreefkerk/claude-skills/tree/main/plugins/sentinel/skills/kql-expert
Command: npx skills add https://github.com/dstreefkerk/claude-skills --skill kql-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill acts as an expert assistant for writing, optimizing, and validating Kusto Query Language (KQL) queries, ensuring efficient and accurate data analysis in Microsoft Sentinel and Azure Monitor.

Core Features & Use Cases

  • Query Optimization: Identifies and suggests improvements for slow or inefficient KQL queries.
  • Schema Validation: Validates KQL against M365 Defender and Sentinel table schemas.
  • Analytics Rule Development: Assists in creating compliant and effective detection rules.
  • ASIM Normalization: Guides on using ASIM parsers for source-agnostic querying.
  • SPL to KQL Migration: Converts Splunk queries to KQL.
  • Use Case: You have a complex KQL query that is timing out. Use this Skill to analyze it, identify performance bottlenecks, and provide an optimized version.

Quick Start

Use the kql-expert skill to optimize the following KQL query: "SecurityEvent | where TimeGenerated > ago(1h) | join IdentityInfo on Account | where EventID == 4625".

Frequently Asked Questions about kql-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize slow KQL queries that keep timing out in Azure Monitor?

To optimize slow KQL queries in Azure Monitor, you must identify performance bottlenecks like inefficient joins or broad time filters. This Skill analyzes complex queries and provides an optimized version to prevent timeouts and ensure efficient data analysis.

How do I validate KQL against Microsoft Sentinel table schemas?

Validating KQL against Microsoft Sentinel table schemas is done using Python scripts to check field names and data types. This ensures your analytics rules parse correctly against the destination tables without runtime errors.

What is the best way to convert Splunk SPL queries to KQL?

The best way to convert Splunk SPL queries to KQL is through automated migration assistance. This translates Splunk search commands into equivalent Kusto Query Language operators for use within Microsoft Sentinel and M365 Defender.

How do I use ASIM parsers for source-agnostic threat hunting in Sentinel?

Using ASIM parsers for source-agnostic threat hunting involves applying Advanced SIEM Information Models to normalize disparate logs. This allows you to write analytics rules that query standardized fields across different data sources.

Can I use this for developing Microsoft Sentinel detection rules?

You can use this for developing Microsoft Sentinel detection rules by validating your KQL logic against table schemas. It assists in creating compliant and effective analytics rules tailored for threat hunting and security monitoring.

Does this work with M365 Defender advanced hunting queries?

It works with M365 Defender advanced hunting queries by validating your KQL syntax against M365 Defender table schemas. This ensures accurate threat hunting and data analysis across the Microsoft security ecosystem.