Last updated：2020-12-28 14:55:51
Before you use KLog to query log data or perform SQL analytics, configure indexes. The indexes include the full-text index and field index.
|Full-text index||The index in the text format is created for the values of all fields, and the values are segmented based on the delimiters.|
|Field index||After you add a field to the field index, you can use the field to query and aggregate data.|
- If both the full-text index and field index are configured, the configuration of the field index prevails.
- If you add a field to the field index, the full-text index of this field remains effective.
- Only a field that has been added to the field index can be used to query and aggregate data.
|Case-sensitive||Specifies whether the query keywords are case-sensitive.|
|Delimiters||The delimiters that are used to segment the values of log data to multiple keywords.|
|Field Name||Required. The name of the field.|
|Data Type||Required. The data type of the field. KLog supports the following four data types: text, long, double, and date.|
|Alias||Optional. The alias of the field. KLog allows you to query data based on field aliases. You can configure the same alias for different fields. In this case, data is queried based on the alias in all these fields.|
|Case-sensitive||Specifies whether the query keywords are case-sensitive. By default, this parameter is disabled.|
|Delimiters||The delimiters that are used to segment the values of log data to multiple keywords. You need to configure the delimiters only when the data type of the field is text.|
After you save the index configuration, it takes effect only on data that is written after the configuration is saved. If you want to query historical data, you must use the historical index configuration.
Did you find the above information helpful?
Please give us your feedback.
Thank you for your feedback.