Skip to content
aliyun avatar

Alibabacloud Sls Query

Query and analyze Alibaba Cloud SLS logs with index search, SQL, and SPL through the aliyun CLI.

CCM score
70 of 100
skills.sh installs
2.3K
GitHub stars
303
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full query workflow: read index config, pick a query mode, build the statement, resolve the time range, and execute
  • Includes reference guides for SQL and SPL syntax, functions, related APIs, and RAM policies
  • Enforces a mandatory get-index check first, since index configuration decides which query modes are available
  • Designed for users who explain, optimize, run, or troubleshoot SLS log queries from a terminal session

Install

$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-sls-query -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Alibaba Cloud SLS Query & Analysis

Scenario Description

Use this skill when the user wants to:

  • Explain, rewrite, optimize or execute an existing query
  • Translate a natural-language requirement into an SLS index query, SQL, or SPL statement

Prerequisites

Install Aliyun CLI

Run aliyun version to verify if version >= 3.3.8. If not installed or outdated, follow the doc references/cli-installation-guide.md to install or update.

Update Plugins

aliyun plugin update

Check Alibaba Cloud credentials configured

Run aliyun configure list to check if credentials configured. If no valid profile is shown, STOP here and ask the user to run aliyun configure outside of this session.

Security rules:

  • NEVER read, echo, or print AK/SK values
  • NEVER ask the user to paste AK/SK into the conversation
  • ONLY use aliyun configure list to check credential status

RAM Permission Requirements

Details

Repository
github.com/aliyun/alibabacloud-aiops-skills
Categories
DevOps & Cloud, Data Science & Analytics, Databases
First seen
Jun 3, 2026

Questions

What does the alibabacloud-sls-query skill do?

alibabacloud-sls-query helps users write, explain, optimize, execute, or troubleshoot Alibaba Cloud SLS index search, SQL analytics, and SPL scan and pipeline statements through the aliyun CLI. It turns natural-language log requirements into SLS queries and reads the results back.

How do I install the alibabacloud-sls-query skill?

Run npx -y skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-sls-query -y in a project to install it. Once installed, alibabacloud-sls-query lets the agent run SLS log queries and analytics for you.

What does alibabacloud-sls-query need before it can run?

alibabacloud-sls-query needs the aliyun CLI at version 3.3.8 or later and a configured Alibaba Cloud credential profile. It also needs RAM permissions for log:GetLogStoreLogs and log:GetIndex on the target Logstore, and the Logstore must already have an index.

Which skills lead the DevOps & Cloud category that alibabacloud-sls-query sits in?

alibabacloud-sls-query is listed in the DevOps & Cloud category on Claude Marketplaces. Its neighbors there include the Azure skills azure-diagnostics, azure-prepare and azure-deploy, while alibabacloud-sls-query focuses on Alibaba Cloud log query and analysis.

More from aliyun/alibabacloud-aiops-skills

All 28

Similar to Alibabacloud Sls Query

More DevOps & Cloud