All Products
Search
Document Center

Simple Log Service:SLS CLI (new version)

Last Updated:Jul 09, 2026

The new Simple Log Service (SLS) command-line interface (CLI) is a plugin for Alibaba Cloud CLI that lets you manage SLS resources from the command line, including projects, Logstores, indexes, log queries, and Logtail configurations.

Features

The SLS CLI provides the following features:

Feature

Description

Project management

Create, query, update, and delete SLS projects.

Logstore management

Manage log storage units. Configure settings such as TTL (Time to Live), shard count, and encryption.

Index configuration

Configure full-text indexes and field indexes for log queries and SQL analysis.

Log queries

Query logs by keyword search or SQL analysis.

Log ingestion

Write JSON-formatted logs from the command line.

Logtail configuration

Configure log collection pipelines. Supports JSON, delimiter, and regular expression parsing.

Machine group management

Manage server groups for log collection.

Install and configure the CLI

For instructions, see Install and configure the new SLS CLI.