All Products
Search
Document Center

Simple Log Service:index

Last Updated:Nov 28, 2024
ParameterTypeDescriptionExample
object

The data structure of the index configuration.

max_text_leninteger

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_listarray

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_listarray

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
lineobject

The configurations of full-text indexes. You must specify at least one of the following parameters: line and keys.

chnboolean

Specifies whether the field contains Chinese characters. Valid values:

  • true
  • false (default)
false
caseSensitiveboolean

Specifies whether to enable case sensitivity. Valid values:

  • true
  • false (default)
true
tokenarray

The delimiters. You can specify a delimiter to delimit the content of a field value.

string

The delimiter. Examples: ",", ".", "\r", and "\n".

,
include_keysarray

The included fields. You cannot specify both include_keys and exclude_keys.

string

The included field.

includeField
exclude_keysarray

The excluded fields. You cannot specify both include_keys and exclude_keys.

string

The excluded field.

excludeField
keysobject

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_reduceboolean

Specifies whether to enable the LogReduce feature. After you enable the LogReduce feature, either the whitelist or blacklist takes effect. Valid values:

  • true
  • false (default)
true