alicloud-observability-sls-log-query

Query and analyze Alibaba Cloud Log Service logs using SLS query syntax.

396|34|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/cinience/alicloud-skills --skill alicloud-observability-sls-log-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: alicloud-observability-sls-log-query
Source: https://github.com/cinience/alicloud-skills/tree/main/skills/observability/sls/alicloud-observability-sls-log-query
Command: npx skills add https://github.com/cinience/alicloud-skills --skill alicloud-observability-sls-log-query

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires aliyun-log-python-sdk, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of querying and troubleshooting logs within Alibaba Cloud's Log Service (SLS), enabling faster issue identification and resolution.

Core Features & Use Cases

  • Log Querying: Search and filter logs using SLS query syntax.
  • Log Analysis: Perform statistical aggregations on log data.
  • Troubleshooting: Identify root causes of errors and performance issues.
  • Use Case: Quickly find all logs with a '500' status code from the last 15 minutes to diagnose an application error.

Quick Start

Use the alicloud-observability-sls-log-query skill to find all logs with a status of 500 from the last 15 minutes.

Frequently Asked Questions about alicloud-observability-sls-log-query

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

FAQPage Schema
How do I query Alibaba Cloud SLS logs to find application errors?

To query Alibaba Cloud SLS logs, use the native query syntax and Python SDK to filter log data. You can find application errors by searching for specific status codes within a time-bounded window for root-cause analysis.

What is the best way to troubleshoot root causes of 500 errors in Alibaba Cloud SLS?

Troubleshooting root causes of 500 errors in Alibaba Cloud SLS involves filtering time-bounded log searches using the native query language. This isolates specific error logs from the last 15 minutes to diagnose performance issues.

Do I need access keys to query Alibaba Cloud logs with the Python SDK?

Yes, you need access keys to query Alibaba Cloud logs with the Python SDK. Operation requires configuration of access keys, endpoint, project, and logstore details to authenticate and execute time-bounded log searches.

Can I perform statistical aggregations on log data in Alibaba Cloud Log Service?

Yes, you can perform statistical aggregations on log data in Alibaba Cloud Log Service. The Skill facilitates log analysis by applying the native query language to aggregate filtered log data for observability and troubleshooting.

How does time-bounded log search work in SLS?

Time-bounded log search in SLS works by applying the native query syntax to filter logs within a specific time window. This narrows down log data to isolate errors and identify root causes during incident investigations.