Parameter | Type | Description | Example |
---|---|---|---|
object | The data structure of the index configuration. | ||
max_text_len | integer | The maximum length of a field value that can be retained. Default value: 2048. Unit: bytes. The default value is equal to 2 KB. You can change the value of this parameter. Valid values: 64 to 16384. | 2048 |
log_reduce_white_list | array | The whitelist of fields that are used to cluster logs. This parameter takes effect only when the LogReduce feature is enabled. | |
string | The field in the whitelist. | name | |
log_reduce_black_list | array | The blacklist of fields that are used to cluster logs. This parameter takes effect only when the LogReduce feature is enabled. | |
string | The field in the blacklist. | time | |
line | object | The configurations of full-text indexes. You must specify at least one of the following parameters: line and keys. | |
chn | boolean | Specifies whether the field contains Chinese characters. Valid values:
| false |
caseSensitive | boolean | Specifies whether to enable case sensitivity. Valid values:
| true |
token | array | The delimiters. You can specify a delimiter to delimit the content of a field value. | |
string | The delimiter. Examples: ",", ".", "\r", and "\n". | , | |
include_keys | array | The included fields. You cannot specify both include_keys and exclude_keys. | |
string | The included field. | includeField | |
exclude_keys | array | The excluded fields. You cannot specify both include_keys and exclude_keys. | |
string | The excluded field. | excludeField | |
keys | object | The configurations of field indexes. A field index is a key-value pair in which the key specifies the name of the field and the value specifies the index configuration of the field. You must specify at least one of the following parameters: line and keys. | |
IndexKey | The configurations of field indexes. A field index is a key-value pair in which the key specifies the name of the field and the value specifies the index configuration of the field. | ||
log_reduce | boolean | Specifies whether to enable the LogReduce feature. After you enable the LogReduce feature, either the whitelist or blacklist takes effect. Valid values:
| true |