Updates the attributes of a Logstore.
Operation description
Debugging
Authorization information
Request syntax
PUT /logstores/{logstore}
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
project | string | Yes | The name of the project. | ali-test-project |
logstore | string | Yes | The name of the Logstore. | test-logstore |
body | object | Yes | The information about the Logstore. | |
logstoreName | string | Yes | The name of the Logstore. | test-logstore |
shardCount | integer | Yes | The number of shards. Note
You cannot call the UpdateLogstore operation to change the number of shards. You can call the SplitShard or MergeShards operation to change the number of shards.
| 2 |
ttl | integer | Yes | The retention period of data. Unit: day. Valid values: 1 to 3650. If you set ttl to 3650, data is permanently stored. | 30 |
encrypt_conf | EncryptConf | No | The data structure of the encryption configuration. | |
autoSplit | boolean | No | Specifies whether to enable automatic sharding. Valid values:
| true |
enable_tracking | boolean | No | Specifies whether to enable the web tracking feature. Default value: false. Valid values:
| false |
appendMeta | boolean | No | Specifies whether to record public IP addresses. Default value: false. Valid values:
| false |
maxSplitShard | integer | No | The maximum number of shards into which existing shards can be automatically split. Valid values: 1 to 64. Note
If you set autoSplit to true, you must specify maxSplitShard.
| 64 |
telemetryType | string | No | The type of the log that you want to query. Valid values:
| None |
hot_ttl | integer | No | The retention period of data in the hot storage tier of the Logstore. Minimum value: 30. Unit: day. You can specify a value that ranges from 30 to the value of ttl. Hot data that is stored for longer than the period specified by hot_ttl is converted to cold data. For more information, see Enable hot and cold-tiered storage for a Logstore. | 60 |
mode | string | No | The type of the Logstore. Simple Log Service provides two types of Logstores: Standard Logstores and Query Logstores.
| standard |
Response parameters
Examples
Sample success responses
JSON
format
{}
Error codes
For a list of error codes, visit the Service error codes.