aliyun-sls-stats

Analyze Alibaba Cloud SLS logs to generate Markdown traffic reports.

3|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/weiran-tech/agent-skills --skill aliyun-sls-stats
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aliyun-sls-stats
Source: https://github.com/weiran-tech/agent-skills/tree/main/skills/aliyun-sls-stats
Command: npx skills add https://github.com/weiran-tech/agent-skills --skill aliyun-sls-stats

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This tool helps operators quickly identify high-traffic API endpoints by analyzing logs stored in Alibaba Cloud SLS and generating a concise Markdown report that highlights top interfaces by request volume.

Core Features & Use Cases

  • Supports multiple log formats (nginx, apisix, k8s-ingress, spring-boot, custom) and computes per-URI traffic metrics (PV per day, percentage, cumulative percentage) with a Pareto-focused view.
  • Outputs a clean Markdown table suitable for dashboards and stakeholder reports, including average and maximum response times for each endpoint.
  • Use cases include performance monitoring, capacity planning, and incident triage by pinpointing the 50% of traffic that drives most load.

Quick Start

Run the analysis to generate a Markdown report from your SLS logs using the provided CLI tool.

Frequently Asked Questions about aliyun-sls-stats

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

FAQPage Schema
How do I analyze API traffic distribution from Alibaba Cloud SLS logs?

To analyze API traffic distribution from Alibaba Cloud SLS logs, this tool queries SLS via the aliyun CLI to compute per-URI PV per day, percentage, and cumulative percentage, outputting a Markdown table of top interfaces by request volume.

Can I generate interface traffic reports for multiple log formats like nginx and apisix?

Yes, you can generate interface traffic reports for multiple log formats. It supports nginx, apisix, k8s-ingress, spring-boot, and custom formats to identify top interfaces by PV and compute average and maximum response times.

What is the best way to identify high-traffic API endpoints for capacity planning?

The best way to identify high-traffic API endpoints for capacity planning is using a Pareto-focused view. This tool computes per-URI traffic metrics and cumulative percentages to pinpoint the 50% of traffic driving most load.

Do I need the aliyun CLI to extract interface PV metrics from SLS?

Yes, you need the aliyun CLI to extract interface PV metrics from SLS. The tool queries SLS logs through the aliyun CLI to calculate daily PV, percentages, and response times for each endpoint.

How does this tool format SLS log analysis results for stakeholder reports?

This tool formats SLS log analysis results for stakeholder reports by outputting a clean Markdown table suitable for dashboards, highlighting top interfaces by request volume alongside their average and maximum response times.

Does this SLS log analyzer work with Spring Boot application logs?

Yes, this SLS log analyzer works with Spring Boot application logs. It supports spring-boot log formats alongside nginx, apisix, and k8s-ingress to compute per-URI traffic metrics and identify high-traffic endpoints.