Torch Log Service
Parameter | Type | Required | Example value | Description |
Parameter | Type | Required | Example value | Description |
TopicId | String | Yes | 0*********** | Log topic ID. |
TopicName | String | No | test-topic | |
Ttl | Integer | No | 1300 | The total retention period of logs in TLS. When logs exceed the specified log storage period, expired logs in this log topic are automatically deleted. Unit: days. The default is 30 days. Value range: 1–3650. If you specify 3650 days, the data is stored permanently. tip After setting EnableHotTtl to true, the Ttl period must match the sum of HotTtl, ColdTtl, and ArchiveTtl. |
AutoSplit | Boolean | No | true | Automatic sharding can be enabled or disabled.
|
MaxSplitShard | Integer | No | 50 | Maximum number of shard splits, which refers to the maximum number of shards after splitting. The value range is 1 to 256, and the default value is 256. tip
|
EnableTracking | Boolean | No | false | WebTracking can be enabled or disabled. If enabled, you can quickly collect frontend tracking data through it.
tip After enabling WebTracking for a log topic, data written through the WebTracks API no longer requires authentication. This grants anonymous write access over the public network, which may result in dirty data. For details, see Collect logs by using WebTracking. |
Description | String | No | This is a test topic. | Description of the log topic.
|
LogPublicIP | Boolean | No | false | Record extranet IP, can be enabled or disabled. By default, it is enabled. When enabled, TLS automatically adds the following metadata fields to the log content.
|
EnableHotTtl | Boolean | No | false | Enable tiered storage Once enabled, TLS supports standard storage, infrequent access storage, and archive storage. After setting HotTtl, ArchiveTtl, and ColdTtl, if the data retention time exceeds the corresponding value, the data will automatically move to infrequent access storage or archive storage until the total retention time (Ttl) is reached, when it is cleaned up by backend services. tip
|
HotTtl | Integer | No | 30 | Standard storage duration. The default duration is 30 days, with a range from 7 to 3650. This parameter only takes effect when EnableHotTtl is true. |
ColdTtl | Integer | No | 30 | Duration of infrequent access storage. The valid range for this duration is 1–3650. Enabling standard storage for 7 days or more allows infrequent access storage. This parameter only takes effect when EnableHotTtl is set to true. |
ArchiveTtl | Integer | No | 60 | Archive storage duration. The range is 60 to 3650 days. Archive storage is enabled when any of the following conditions are met.
This parameter is only effective when EnableHotTtl is set to true. |
HTTP status code | Error Code | Error message | Description |
HTTP status code | Error Code | Error message | Description |
400 | InvalidArgument | Invalid argument key %s, value %s, please check argument. | Invalid parameter. |
404 | TopicNotExist | topic %s does not exist. | The log topic does not exist. |
409 | TopicAlreadyExist | Topic %s already exist | The log topic already exists. |
500 | InternalServerError | We encountered an unexpected server error, please try again later. | Internal server error. |