logstore

更新时间:
复制 MD 格式

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 3,650. A value of 3,650 indicates permanent storage.

1

shardCount

integer

The number of shards in the Logstore.

2

enable_tracking

boolean

Specifies whether to enable WebTracking. The default value is false.

  • true: Enables WebTracking.

  • false: Disables WebTracking.

false

autoSplit

boolean

Specifies whether to enable auto split.

  • true: Enables auto split.

  • false: Disables auto split.

true

maxSplitShard

integer

The maximum number of shards that an auto split can create. Valid values: 1 to 64.

6

appendMeta

boolean

Specifies whether to include the client's public IP address in the log data. The default is false.

  • true: Records the public IP address.

  • false: Does not record the public IP address.

false

telemetryType

string

The type of log data. Valid values:

  • Metrics: The Logstore is optimized for time-series storage.

  • None: The Logstore uses standard storage for logs.

Metrics

createTime

integer

The creation time of the Logstore, specified as a UNIX timestamp (the number of seconds since January 1, 1970, 00:00:00 UTC).

1453949705

lastModifyTime

integer

The time the Logstore was last modified, specified as a UNIX timestamp (the number of seconds since January 1, 1970, 00:00:00 UTC).

1524155379

encrypt_conf EncryptConf

The data encryption configuration.

hot_ttl

integer

The number of days to retain data in the hot storage tier. The minimum value is 30.

60

infrequentAccessTTL

integer

The number of days to retain data in the infrequent access storage tier.

30

mode

string

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

  • Standard: Supports the full suite of Log Service data analysis features. This mode is ideal for real-time monitoring, interactive analysis, and building complete observability solutions.

  • Query: Optimized for high-performance queries with indexing traffic costs that are approximately half those of the Standard mode. This mode does not support SQL analysis and is best for use cases involving large data volumes and long retention periods, where complex log analysis is not a requirement.

standard

productType

string

The product type of the logs.

aliyun

processorId

string

The IngestProcessor ID.

shardingPolicy ShardingPolicy

resourceGroupId

string

enableModify

boolean