logstore

Updated at:

Parameter

Type

Description

Example

object

The Logstore data structure.

logstoreName

string

The name of the Logstore.

my-logstore

ttl

integer

The data retention period, in days. Valid values: 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 the WebTracking feature. Default value: false.

  • true: enables WebTracking.

  • false: disables WebTracking.

false

autoSplit

boolean

Specifies whether to enable automatic sharding.

  • true: Enables automatic sharding.

  • false: Disables automatic sharding.

true

maxSplitShard

integer

The maximum number of shards for automatic sharding. Minimum value: 1. Maximum value: 64.

6

appendMeta

boolean

Specifies whether to record public IP addresses. Default value: 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 representing the number of seconds that have elapsed 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 representing the number of seconds that have elapsed 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. Minimum value: 30. Unit: days.

60

infrequentAccessTTL

integer

The retention period of data in the infrequent access (IA) tier.

30

mode

string

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

  • standard: supports the all-in-one data analytics feature of Simple Log Service and is suitable for scenarios such as real-time monitoring, interactive analysis, and building full-stack observability systems.

  • query: supports high-performance queries. The index traffic fee is about half of that of the Standard type, but SQL analysis is not supported. It is suitable for scenarios with large data volumes, long retention periods (weeks or months), and no log analysis requirements.

standard

productType

string

The product type to which the logs belong.

aliyun

processorId

string

IngestProcessor ID

ingest-processor-1756802123-953901

shardingPolicy ShardingPolicy

The hash-based write configuration.

resourceGroupId

string

The resource group.

rg-acf******sq

enableModify

boolean

Specifies whether to enable the log modification and deletion feature.

true