All Products
Search
Document Center

Simple Log Service:logstore

Last Updated:Sep 25, 2024
ParameterTypeDescriptionExample
object

The data structure of the Logstore.

logstoreNamestring

The name of the Logstore.

my-logstore
ttlinteger

The log retention period. Unit: days. Valid values: 1 to 3650. If you set this parameter to 3650, data is permanently stored.

1
shardCountinteger

The number of shards.

2
enable_trackingboolean

Specifies whether to enable the web tracking feature. Default value: false. Valid values:

  • true
  • false
false
autoSplitboolean

Specifies whether to enable automatic sharding. Valid values:

  • true
  • false
true
maxSplitShardinteger

The maximum number of shards into which existing shards can be automatically split. Valid values: 1 to 64.

6
appendMetaboolean

Specifies whether to record public IP addresses. Default value: false. Valid values:

  • true
  • false
false
telemetryTypestring

The type of the data that you want to query. Valid values:

  • Metrics: metric data.
  • None: non-metric data.
Metrics
createTimeinteger

The time at which the Logstore was created. The value is a UNIX timestamp representing the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1453949705
lastModifyTimeinteger

The time at which the Logstore was last modified. The value is a UNIX timestamp representing the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1524155379
encrypt_confEncryptConf

The configuration of data encryption.

hot_ttlinteger

The retention period of data in the hot storage tier of the Logstore. Minimum value: 30. Unit: days.

60
infrequentAccessTTLinteger

The retention period of data in the Infrequent Access (IA) storage tier of the Logstore.

30
modestring

The type of the Logstore. Simple Log Service provides two types of Logstores: Standard Logstores and Query Logstores. Valid values:

  • standard: Standard Logstore. This type of Logstore supports the log analysis feature and is suitable for scenarios such as real-time monitoring and interactive analysis. You can also use this type of Logstore to build a comprehensive observability system.
  • query: Query Logstore. This type of Logstore supports high-performance queries. The index traffic fee of a Query Logstore is approximately half that of a Standard Logstore. Query Logstores do not support SQL analysis. Query Logstores are suitable for scenarios in which the amount of data is large, the log retention period is long, or log analysis is not required. If logs are stored for weeks or months, the log retention period is considered long.
standard
productTypestring

The type of the service to which the logs belong.

aliyun