querySLSLogs
Extract and analyze logs from Aliyun Simple Log Service (SLS) by specifying project, logstore, query, and time range. Supports pagination, result ordering, and customizable limits for efficient log retrieval.
Instructions
Query Aliyun SLS (Simple Log Service) logs
Input Schema
Name | Required | Description | Default |
---|---|---|---|
from | No | Start time in milliseconds (defaults to 1 hour ago) | |
limit | No | Maximum number of logs to return (default: 100, max: 1000) | |
logstore | Yes | SLS logstore name | |
offset | No | Offset for pagination (default: 0) | |
project | Yes | SLS project name | |
query | Yes | SLS query statement | |
reverse | No | Whether to return results in reverse order (default: false) | |
to | No | End time in milliseconds (defaults to now) |