Field | Type | Required | Description |
name | string | Yes | The name of the Logstore. |
queryMode | string | No | The type of the Logstore. For more information, see Logstore types. Default value: standard. Valid values: |
ttl | int | No | The retention period of logs in the Logstore. Unit: days. For more information, see Data Retention Period. Default value: 30. Valid values: 1 to 3650. If you set this field to 3650, logs are permanently stored. |
hotTtl | int | No | The retention period of logs in the hot storage tier of the Logstore. Unit: days. For more information, see Intelligent Tiered Storage. Default value: 0. The value of this field must be less than the value of the ttl field and greater than or equal to 7.
|
shardCount | int | No | The number of shards in the Logstore. For more information, see Manage a logstore. Default value: 2. Valid values: 1 to 100. |
maxSplitShard | int | No | The maximum number of shards into which existing shards in the Logstore can be automatically split. For more information, see Automatic Sharding. Default value: 64. Valid values: 1 to 256. |
autoSplit | bool | No | Specifies whether to enable automatic sharding for the Logstore. For more information, see Automatic Sharding. Default value: true. |
telemetryType | string | No | The type of observable data in the Logstore. For more information, see telemetryType. Default value: None. Valid values: None: log data Metrics: metric data
|
appendMeta | bool | No | Specifies whether to record public IP addresses for the Logstore. For more information, see Log Public IP. Default value: true. |
enableTracking | bool | No | Specifies whether to enable the web tracking feature for the Logstore. For more information, see WebTracking. Default value: false. |
encryptConf | object | No | The encryption settings of the Logstore. For more information, see Common data structures. This field is empty by default. |
meteringMode | string | No | The billing mode of the Logstore. For more information, see Billing Mode. This field is empty by default. Valid values: Note If you set the queryMode field to query, you must set this field to ChargeByFunction. If the pay-by-ingested-data billing mode is disabled for your account, you can set this field only to ChargeByFunction. |