A Logstore in Log Service is used for log collection, storage, and queries.

  • Logstore naming rules
    • The name can contain lowercase letters, digits, hyphens (-), and underscores (_).
    • The name must start and end with a lowercase letter or digit.
    • The name must be 3 to 63 characters in length.
  • Example Logstore
    {
        "logstoreName" : "access_log",
        "ttl": 1,
        "shardCount": 2,
        "autoSplit": true,
        "maxSplitShard": 64,
        "createTime":1439538649,
        "lastModifyTime":1439538649
    }
  • Example parameters description
    Parameter Type Required Description
    logstoreName String Yes The name of the Logstore. The name must be unique in a project.
    ttl Integer Yes The time to live (TTL) of log data. Unit: days. Minimum value: 1.
    shardCount Integer Yes The number of shards in the Logstore.
    autoSplit Boolean No Specifies whether to enable automatic sharding.
    maxSplitShard Integer No The maximum number of shards for automatic sharding. Minimum value: 1. Maximum value: 64. This parameter must be specified if the autoSplit parameter 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.