|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
The data structure for the index configuration. |
||
| max_text_len |
integer |
The default maximum length of a field value in Simple Log Service is 2,048 bytes (2 KB). To change this limit, set the maximum length for a text field. The value must be between 64 and 16,384 bytes. |
2048 |
| log_reduce_white_list |
array |
The whitelist of fields for log clustering. This parameter is valid only when log clustering is enabled. |
|
|
string |
A field in the whitelist. |
name |
|
| log_reduce_black_list |
array |
The blacklist of fields for log clustering. This parameter is valid only when log clustering is enabled. |
|
|
string |
A field in the blacklist. |
time |
|
| line |
object |
The full-text index configuration. You must specify either this parameter or the `keys` parameter. |
|
| chn |
boolean |
Specifies whether the logs contain Chinese characters.
|
false |
| caseSensitive |
boolean |
Specifies whether the index is case-sensitive.
|
true |
| token |
array |
The list of delimiters for tokenization. This parameter specifies how the field is tokenized. |
|
|
string |
A delimiter. Examples: ",", ".", "\r", and "\n". |
, |
|
| include_keys |
array |
The list of fields to include in the full-text index. This parameter cannot be specified at the same time as `exclude_keys`. |
|
|
string |
A field to include. |
includeField |
|
| exclude_keys |
array |
The list of fields to exclude from the full-text index. This parameter cannot be specified at the same time as `include_keys`. |
|
|
string |
A field to exclude. |
excludeField |
|
| keys |
object |
The field index configuration. The key is the field name and the value is the index configuration for the field. You must specify either this parameter or the `line` parameter. |
|
|
The field index configuration. The key is the field name and the value is the index configuration for the field. |
|||
| log_reduce |
boolean |
Specifies whether to enable log clustering. If enabled, either the whitelist or the blacklist can be active, but not both.
|
true |
| scan_index |
boolean |
false |