Torch Log Service
Category | Description |
Enable index | At least enable one index between full-text index and key-value index. If no index is enabled, logs that are collected can not be searched. |
Delimiter | TLS words have a character limit of 32,766 characters. If you do not set token delimiters, logs whose full-text or word fields are too long might be discarded. |
Full-text index |
|
Key-value index |
|
Edit index | You can modify the index anytime after configuration. After you modify index, note that:
|
Index type | Description |
Full-text index | After enabling the full-text index, TLS splits logs into multiple text-type tokens based on the delimiter. Then you can query the full-text by keywords. For example, use the error or warning statement to query logs containing the keywords error or warning. |
Key-value index | After enabling key-value index for a target field, TLS first splits logs by field name (Key), and then splits field values (Value) within each field based on the delimiter. Key-value index supports four data types: text, long, double, and json. For details, see Index data types. After creating a key-value index, you can specify field names and field values (Key:Value) to query logs. |
Reserved field index | When writing log data to TLS, TLS automatically adds some metadata fields to each log. The metadata fields are used to record log source, timestamp, and other details. These fields are called reserved fields in TLS. After enabling the index feature, TLS automatically applies key-value indexing and statistics to some reserved fields, such as __time__. For default reserved field index configurations, see Reserved field. For fields without preset indexes, such as __content__, you can manually set index for it via Reserved Field Index. |
Configuration | Description |
Case sensitive | During query, English letters can be case sensitive. You can choose to enable or disable this feature.
|
Delimiter | When querying, TLS can split the Chinese content of logs according to Chinese grammar. You can choose to enable or disable this function. Either Delimiter or Chinese grammar must be enabled.
Notice Even if the Chinese word segmentation configuration is not enabled, you can still query Chinese characters in logs. In this case, the keyword must exactly match the Chinese field. For example, if the log contains Chinese field Access request failed:
|
Delimiter | Split log content based on the specified delimiter. Either Chinese word segmentation or delimiter must be enabled.
For example, the log content is /var/log/access.log.
|
Configuration | | Description |
Field name | | The name of the log field, i.e., the key in the key-value pair.
Notice You can add up to 500 log fields. |
Field type | | The data type of the log field. Select data type based on your actual needs. The data type setting determines the accuracy and precision of the query and analysis results. For more details, see Index data types. Supported data types include text, long, double, and json. |
Enable analytics | | This configuration determines whether to enable or disable statistics.
|
Field configuration | Case sensitive | This configuration determines whether case sensitivity for English letters is applied when you query and analyze based on this field.
|
| Chinese word segmentation | When querying, TLS can split the Chinese content of logs according to Chinese grammar. You can choose to enable or disable this function.
|
| Delimiter | Query by field determines whether log content is split based on the specified delimiter.
For example, the log content is /var/log/access.log.
|
Action | Modify description | Descriptive information of index fields enables the intelligent assistant to extract and analyze corresponding fields more effectively. The intelligent assistant feature is only available in the China (Beijing), China (Guangzhou) and China (Shanghai) regions. |
Index type | Description |
Full-text index | Both field names and field values are stored as text types and both generate index traffic. |
Key-value index |
|