RepositoryNONa Uy
tobiasmcvey

tobiasmcvey/kusto-queries

example queries for learning the kusto language

111sao
36fork
0issue
2lượt xem

📚 Bộ truy vấn KQL thực tế, từ cơ bản đến nâng cao

Tập hợp ví dụ trực tiếp từng chủ đề KQL, kèm giải thích ngắn gọn, giúp bạn học nhanh mà không cần lục tài liệu dài.

Dự án kusto-queries của Tobias McVey cung cấp các đoạn truy vấn mẫu thực tế cho người mới bắt đầu học ngôn ngữ truy vấn Kusto Query Language (KQL) — ngôn ngữ dùng trong Azure Data Explorer, cũng áp dụng trong Azure Monitor Logs, Application Insights, Time Series Insights và Defender for Endpoint. Dự án giúp người dùng nhanhiên hiểu và áp dụng KQL qua từng ví dụ cụ thể.

✨ Điểm nổi bật

  • Tìm kiếm dữ liệu: hỗ trợ tìm kiếm trong một hoặc nhiều bảng dữ liệu bằng từ khóa hoặc biểu thức chính quy.
  • Lọc theo thời gian: dễ dàng áp dụng bộ lọc thời gian bằng các hàm như ago(), between, datetime().
  • Điều kiện Where: kết hợp nhiều điều kiện lọc bằng and, or, cùng các hàm như hasprefix, hassuffix, contains, matches regex.
  • Lấy mẫu dữ liệu: dùng take hoặc limit để lấy một số lượng bản ghi nhất định khi khám phá ban đầu.
  • Đếm bản ghi: sử dụng count để đếm số hàng trong bảng hoặc sau khi đã lọc.
  • Tổng hợp dữ liệu: dùng summarize với các hàm như count(), avg(), bin() để nhóm và tính toán.
  • Biến đổi cột: hỗ trợ thêm cột mới bằng extend hoặn chọn cột hiển thị bằng project.
  • Tính toán KPI: các ví dụ thực tế về cách tính các chỉ số quan trọng bằng KQL.

💡 Vì sao đáng chú ý

Không giống tài liệu lý thuyết dài, dự án trình bày từng toán tử KQL một cách rõ ràng qua ví dụ thực tế, phù hợp cho người mới chưa quen với cú pháp. Mỗi phần đều đi kèm mô tả ngắn giúp người đọc hiểu ngay cách dùng và lưu ý khi truy vấn trên tập dữ liệu lớn.

Dự án rất hữu ích cho các kỹ sĩ vận hành, DevOps, hoặc bất kỳ ai đang làm việc với Azure Monitor, Application Insights và cần phân tích log, telemetry một cách nhanh chóng và hiệu quả.


#KQL #AzureDataExplorer #ApplicationInsights #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

Repository
cyb3rmik3/KQL-threat-hunting-queries

A repository of KQL queries focused on threat hunting and threat detecting for Microsoft Sentinel & Microsoft XDR (Former Microsoft 365 Defender).

809
Nov 27, 2026
RepositoryBicep
f-bader/DefenderAndSentinelQueries

Repository with Sentinel Analytics Rules, Hunting Queries and helpful external data sources.

154
Nov 19, 2026
RepositoryC#
NeilMacMullen/kusto-loco

C# KQL query engine with flexible I/O layers and visualization

147
Nov 29, 2026
RepositoryXSLT
ep3p/Sentinel_KQL

In this repository you may find KQL (Kusto Query Language) queries and Watchlist schemes for data sources related to Microsoft Sentinel (a SIEM tool).

143
Oct 22, 2026
Repository
lawndoc/AdvancedHuntingQueries

Microsoft 365 Advanced Hunting Queries with hotlinks that plug the query right into your tenant.

132
Feb 10, 2026
Repository
globalbao/awesome-kql

Collection of awesome KQL queries for use in Portal and via PowerShell - by @JesseLoudon

99
Nov 22, 2026
RepositoryJupyter Notebook
microsoft/generative-ai-for-beginners

21 Lessons, Get Started Building with Generative AI

124.7k
Dec 2, 2026
RepositoryTypeScript
LibreChat-AI/LibreChat

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

47.6k
Nov 29, 2026
RepositoryGo
pulumi/pulumi

Pulumi - Infrastructure as Code in any programming language 🚀

26.0k
Nov 30, 2026