What is Simple Log Service?

更新时间:
复制 MD 格式

As a cloud-native data application platform, Simple Log Service (SLS) provides large-scale, low-cost, and real-time platform services for data such as logs, metrics, and traces. SLS offers one-stop capabilities for data collection, processing, storage, query and analysis, monitoring, and integration, enhancing digital capabilities across development, DevOps, business operations, and security scenarios.

Use cases

Log management

  • Provides comprehensive data collection capabilities from clients, servers, and cloud products.

  • Supports tiered storage for data with different lifecycles.

  • Supports petabyte-scale query and analysis daily to rapidly respond to business needs.

Unified data pipeline/data lake

  • Supports dozens of collection methods for unified, real-time ingestion of massive amounts of data.

  • Enables data cleansing, real-time consumption, and distribution for business analytics, big data analytics, and more.

  • Supports petabyte-scale query and analysis daily to rapidly respond to business needs.

Log security and compliance auditing

  • Builds a unified log security audit solution with data collection across multiple accounts and regions.

  • Automatically collects logs from new instances and centralizes storage to support auditing functions.

  • Includes built-in audit rules and integrates with third-party SIEM systems.

End-to-end observability and operations

  • Supports unified storage and correlated analysis of observability data like logs, metrics, and traces.

  • Integrates AIOps tools such as intelligent inspection, prediction, and root cause analysis to enable anomaly detection and automated alerting, improving system stability and user experience.

Business analysis and monitoring

  • Connects system and business data to deliver real-time insights.

  • Helps prevent system risks and adjust business strategies. Unlike the T+1 latency of traditional BI systems, it provides real-time or minute-level data analysis.

Why choose Simple Log Service?

SLS is more than just a logging system; it is a core component of an enterprise-grade unified data platform and intelligent operations platform. Compared to self-managed solutions like the ELK stack, SLS offers the following key advantages:

  • Unified ingestion: Supports multiple data types, including logs, metrics, and traces, from clients, servers, IoT devices, mobile apps, cloud products, open-source systems, multi-cloud environments, and on-premises servers.

  • Efficient processing: Provides real-time data processing capabilities at multiple stages: during collection, at write time, and after writing. It includes a rich set of built-in functions and a stream processing engine.

  • Unified storage: Breaks down data silos and supports tiered storage with automated lifecycle management.

  • Intelligent analysis: Queries tens of billions of data records in seconds. It provides nearly 100 built-in analysis functions, supports local Agent Skill for intelligent log query and analysis, and features an AI assistant (Copilot) that automatically generates query statements.

  • End-to-end observability: Provides unified storage and correlated analysis for logs, metrics, and traces. It integrates AIOps for intelligent anomaly detection and root cause analysis.

  • Cost-effective: Uses a pay-as-you-go model that can reduce TCO by over 50%. It also features elastic scaling to handle petabytes of data per day and manage traffic spikes.

  • Out-of-the-box: Includes built-in enterprise applications like CloudLens (observability) and FinOps (cost analysis). It supports an open ecosystem and is compatible with various open-source engines.

Core features

Data collection

  • Multi-source ingestion: Supports client logs (web, app, IoT), server and application logs, Alibaba Cloud product logs (such as RDS, SLB, and OSS), standard protocols (such as Syslog, SNMP, and HTTP), and open-source system logs (such as Nginx, MySQL, and Kafka). It connects data across accounts, clouds, and hybrid environments.

  • Multiple collection methods: Supports the self-developed LoongCollector (an upgraded version of Logtail), WebTracking for front-end collection, SDKs, and APIs.

  • High reliability: Ensures stability with features like resumable uploads, elastic scaling, and multi-path transmission (public network, internal network, and Global Accelerator). It automatically discovers new instances and collects their logs.

Data processing

SLS supports end-to-end data processing, with real-time processing available during data collection, at write time, and after writing. You can structure, cleanse, filter, format, mask, encrypt, route, and enrich data. SLS includes a variety of built-in functions for text processing, JSON parsing, regex extraction, field mapping, and data conversion. It features a high-throughput, low-latency stream processing engine and supports SPL processing statements.

Data storage

SLS offers an intelligent data storage solution that optimizes costs without compromising functionality. It uses redundancy to guarantee data durability and availability.

  • Unified storage platform: Breaks down data silos by supporting unified storage for logs, metrics, and traces.

  • Intelligent lifecycle management: For hot data, it supports high-frequency access with millisecond response times. For cold data, it provides infrequent access and automatically transitions to Infrequent Access or Archive storage to reduce storage costs.

  • High availability and durability: Multi-replica redundant storage ensures no data is lost. Storage types include Standard and Query.

Query and analysis

  • High-performance query engine: Supports Index-based query (responds to queries on tens of billions of data records in seconds) and Scan-based query and analysis (Scan) (for lightweight analysis). It includes nearly 100 built-in query and analysis functions (statistical, aggregate, string, time, etc.). It also supports cross-Store federated queries (StoreView) and high-precision analysis with Dedicated SQL.

  • Smart generation: Supports AI-powered generation of query and analysis statements (Copilot).

  • Intelligent operations capabilities: Integrates AIOps to provide anomaly detection, root cause analysis, and intelligent inspection capabilities. Supports scheduled SQL queries for report generation.

  • Compatibility with multiple products: Supports federated queries with external data sources, allowing you to use data from MySQL, PostgreSQL, OSS, and CSV files as external storage for query and analysis. It can also connect to third-party tools like Elasticsearch and Azure for query and analysis.

Data monitoring (visualization and alerting)

  • Visualization: Provides the dashboard feature with over 10 built-in chart types (tables, line charts, bar charts, maps, etc.). It also supports custom dashboards, console embedding, and drill-down analysis. It can be integrated with third-party systems like Grafana and Quick BI.

  • Intelligent alerting: Offers a one-stop alerting solution that includes alert monitoring, alert management, and notification (action) management. It supports unified alerting across multiple sources, accounts, and conditions. Automated intelligent noise reduction eliminates "alert storms." Notifications can be sent through multiple channels, including phone, SMS, DingTalk, WeChat, Lark, and webhooks.

Data output and integration

SLS supports downloading logs to a local machine or shipping logs to other cloud products. You can also use the SLS platform for real-time data consumption.

  • Data consumption: Supports real-time consumption via Spark Streaming, Flume, and Flink.

  • Data shipping: Supports real-time shipping to cloud products such as OSS, MaxCompute, and TSDB.

Get started

To help you use Simple Log Service quickly and efficiently, we recommend following these three core stages. Each stage includes basic steps (recommended for all users) and optional/advanced steps (for users who require more in-depth functionality).

Preparation

Data ingestion

Data application

Core goal

Understand core concepts and complete basic setup to prepare for data ingestion.

Securely and efficiently transfer various types of data, such as logs, metrics, and traces, into Simple Log Service.

Leverage your data for business value through query, analysis, monitoring, and alerting.

Basic steps

  1. Activate Simple Log Service.

  2. Understand core resources: Project and Store.

  3. Create a Project.

  1. Familiarize yourself with data collection methods and understand the scope of data collection.

  2. Create a Store based on the data model: LogStore, MetricStore, EventStore.

  3. Choose a collection method to ingest data: Log collection, Metric collection, Trace collection, Event collection.

  1. Query and analysis

  2. Monitoring and visualization

    • Dashboard: Visualize your data using dashboards.

    • Alert: Set alert rules and policies.

Optional/advanced steps

  1. Experience Simple Log Service with the Quick start: Collect text logs from an ECS instance tutorial.

  2. Resource planning: Plan your resource hierarchy and lifecycle in advance. Understand basic resource limits and resource throttling policies.

  3. Permission management: Configure RAM permissions for access control or restrict access by IP address.

  1. Understand data storage methods and configure a storage policy with intelligent storage tiering.

  2. SLS provides different data processors for various stages, including during data collection, at write time, and after writing. Choose a processor based on the differences between data processors to configure data processing rules (such as masking, filtering, and enrichment).

  1. Query and analysis

  2. Monitoring and visualization

  3. Output and integration

Billing

Billing methods

  • Pay-as-you-go: Suitable for scenarios where business volume changes frequently.

  • Resource plan: Suitable for scenarios with relatively stable business volume.

Billing modes and billable items

FAQ

Data usage policy

Alibaba Cloud does not use or disclose your business data without your authorization, except as required to perform your service requests or as required by laws and regulations. For more information, see the Service Terms.

Internal usage at Alibaba Cloud

Yes. Simple Log Service is the internal logging and monitoring platform for Alibaba and has been proven at scale during multiple Double 11 global shopping festivals. Developers within Alibaba Cloud also use Simple Log Service in many projects.

Service stability during data surges

Simple Log Service provides a flexible and adaptive data infrastructure with elastic scaling capabilities that can handle petabytes of data per day. This ensures it can easily cope with traffic peaks and business growth.

Cost planning

The usage cost of Simple Log Service primarily consists of read/write and storage fees.

  1. Read/write: Plan based on the number of shards, the data volume per read/write operation, and index usage.

  2. Storage: Plan based on the retention period and storage type.

For details, see Cost optimization.

Disabling the service and stopping billing

To stop billing for Simple Log Service, you must address both data collection and resource storage:

  1. Stop log collection: After collection is stopped, the collector no longer transmits new logs.

  2. Clean up storage resources: Delete the corresponding Project and LogStore in Simple Log Service. Ensure all associated resources are deleted to avoid charges for storage space usage.

For details, see Stop billing.

Data retention period

You can store data permanently or for a specified period. Data that exceeds the specified retention period is automatically deleted. You can also enable intelligent storage tiering to transition data older than a specified period to Infrequent Access or Archive storage to reduce storage costs.