kql-query-guide

Generates KQL queries for diagnosing Azure Kubernetes Service workload issues.

862|215|Updated Jun 17, 2021
One-click install
npx skills add https://github.com/TencentBlueKing/bk-job --skill kql-query-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kql-query-guide
Source: https://github.com/TencentBlueKing/bk-job/tree/main/ai_agent/op/skills/kql-query-guide
Command: npx skills add https://github.com/TencentBlueKing/bk-job --skill kql-query-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies the process of writing KQL (Kibana Query Language) queries for the BlueKing Job Platform, enabling users to efficiently search and analyze execution logs, troubleshoot issues, and understand task flows.

Core Features & Use Cases

  • KQL Query Generation: Provides templates and script-based generation for common KQL queries.
  • Log Analysis Guidance: Offers insights into common log paths for GSE and CMDB interactions.
  • Troubleshooting Assistance: Helps users pinpoint errors by guiding them to relevant logs.
  • Use Case: When a job fails, use this Skill to generate a KQL query to find the request_id in the error logs, then generate another query to examine the associated GSE or CMDB calls for deeper analysis.

Quick Start

Use the kql-query-guide skill to generate a KQL query for finding error logs related to request ID 'b02df4aec7bd263a9b4f727eb605fad9'.

Frequently Asked Questions about kql-query-guide

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

FAQPage Schema
How do I write a KQL query to find error logs in the BlueKing Job Platform?

To find error logs in the BlueKing Job Platform, construct a KQL query filtering by log level and request ID. This Skill provides query templates and a script for dynamic query generation to pinpoint exact task failures.

What is the best way to trace GSE or CMDB integration issues using execution logs?

Tracing GSE or CMDB integration issues requires isolating the request_id from failed job logs. You can then generate targeted KQL queries to examine subsequent GSE or CMDB calls for deeper analysis of task flow interruptions.

Can I generate dynamic KQL queries based on a specific request ID and log level?

Yes, you can generate dynamic KQL queries using the provided script. It constructs queries based on specific request IDs and log levels, facilitating comprehensive execution log tracing and troubleshooting.

When do I need KQL syntax explanations for BlueKing Job Platform troubleshooting?

You need KQL syntax explanations when manual log searches become inefficient for troubleshooting complex task failures. It helps you understand query structures to effectively search and analyze execution logs across GSE and CMDB interactions.

Does this KQL query guide provide templates for common log analysis scenarios?

Yes, the guide provides templates for common KQL queries tailored for log analysis. These templates simplify searching execution logs, enabling users to efficiently troubleshoot issues and understand task flows.