All Products
Search
Document Center

Simple Log Service:logstore

Last Updated:Jan 09, 2026

Parameter

Type

Description

Example

object

The data structure of a Logstore.

logstoreName

string

The name of the Logstore.

my-logstore

ttl

integer

The data retention period in days. The valid range is 1 to 3650. A value of 3650 indicates permanent retention.

1

shardCount

integer

The number of shards.

2

enable_tracking

boolean

Specifies whether to enable web tracking. The default value is false.

  • true: Enables web tracking.

  • false: Disables web tracking.

false

autoSplit

boolean

Specifies whether to automatically split shards.

  • true: Automatically splits shards.

  • false: Does not automatically split shards.

true

maxSplitShard

integer

The maximum number of shards for an automatic split. The minimum value is 1 and the maximum value is 64.

6

appendMeta

boolean

Specifies whether to record public IP addresses. The default value is false.

  • true: Records public IP addresses.

  • false: Does not record public IP addresses.

false

telemetryType

string

The log type to query. Valid values:

  • Metrics: time series storage.

  • None: non-time series storage.

Metrics

createTime

integer

The time when the Logstore was created. The value is a UNIX timestamp that represents the number of seconds since 00:00:00 UTC on January 1, 1970.

1453949705

lastModifyTime

integer

The time when the Logstore was last updated. The value is a UNIX timestamp that represents the number of seconds since 00:00:00 UTC on January 1, 1970.

1524155379

encrypt_conf EncryptConf

The data encryption configuration.

hot_ttl

integer

The retention period of data in the hot tier of the Logstore, in days. The minimum value is 30.

60

infrequentAccessTTL

integer

The retention period for the IA storage class.

30

mode

string

Simple Log Service provides two types of Logstores: Standard and Query.

  • standard: Supports the one-stop data analytics feature of Simple Log Service. This type is suitable for scenarios such as real-time monitoring, interactive analysis, and building complete observability systems.

  • query: Supports high-performance queries. The index traffic cost is about half that of the Standard type. However, this type does not support SQL analysis. It is suitable for scenarios with large data volumes, long storage periods such as weeks or months, and no log analysis requirements.

standard

productType

string

The product type to which the logs belong.

aliyun

processorId

string

The IngestProcessor ID.

shardingPolicy ShardingPolicy

resourceGroupId

string