A Logstore in Simple Log Service is a unit for log collection, storage, and queries.
Naming conventions
The name must contain only lowercase letters, digits, hyphens (-), and underscores (_).
The name must start and end with a lowercase letter or a digit.
Must contain 3 to 63 characters.
Resource example
{ "logstoreName" : "access_log", "ttl": 1, "shardCount": 2, "autoSplit": true, "maxSplitShard": 64, "createTime":1439538649, "lastModifyTime":1439538649 }Parameter descriptions
The following table describes the parameters used in the resource example.
Parameter name
Type
Required
Description
logstoreName
String
Yes
The name of the Logstore. The name must be unique in the project.
ttl
Integer
Yes
The time to live (TTL) of log data, in days. The minimum value is 1.
shardCount
Integer
Yes
A data service unit for logs.
autoSplit
bool
No
Specifies whether to enable automatic sharding.
maxSplitShard
int
No
The maximum number of shards for automatic sharding. The value must be an integer from 1 to 64. This parameter is required if autoSplit is set to true.
createTime
Integer
No
The time when the Logstore was created.
lastModifyTime
Integer
No
The time when the Logstore was last modified.