Parameter | Description |
Field Name | The name of the log field. Example: client_ip . The name can contain only letters, digits, and underscores (_). It must start with a letter or an underscore (_). Important If you want to create an index for a __tag__ field, such as a public IP address or UNIX timestamp, you must set the Field Name parameter to a value in the __tag__:KEY format. Example: __tag__:__receive_time__ . For more information, see Reserved fields. __tag__ fields do not support numeric indexes. When you create an index for a __tag__ field, you must set the Type parameter to text.
|
Type | The data type of the field value. Valid values: text, long, double, and json. For more information, see Data types. If you set the data type for a field to long or double, you cannot configure the Case Sensitive, Include Chinese, or Delimiter parameter for the field. |
Alias | The alias of the field. For example, you can set the alias of the client_ip field to ip . The alias can contain only letters, digits, and underscores (_). It must start with a letter or an underscore (_). Important You can use the alias of a field only in an analytic statement. You must use the original name of a field in a search statement. An analytic statement includes a SELECT statement. For more information, see Column aliases. |
Case Sensitive | Specifies whether searches are case-sensitive. If you turn on Case Sensitive, searches are case-sensitive. For example, if a log contains internalError , you can search for the log by using only the internalError keyword. If you turn off Case Sensitive, searches are not case-sensitive. For example, if a log contains internalError , you can search for the log by using the INTERNALERROR or internalerror keyword.
|
Delimiter | The delimiters that are used to split the content of a log into multiple words. By default, Simple Log Service uses the following delimiters: , '";=()[]{}?@&<>/:\n\t\r . If the default delimiters do not meet your business requirements, you can specify custom delimiters. All ASCII codes can be specified as delimiters. If you leave Delimiter empty, Simple Log Service considers an entire log as a whole. In this case, you can search for the log only by using a complete string or by performing fuzzy match. For example, the content of a log is /url/pic/abc.gif . If you do not specify a delimiter, the content of the log is considered as a single word /url/pic/abc.gif . You can search for the log only by using the /url/pic/abc.gif keyword or by using /url/pic/* to perform fuzzy match. If you set Delimiter to a forward slash (/), the content of the log is split into the following three words: url , pic , and abc.gif . You can search for the log by using the url , abc.gif , or /url/pic/abc.gif keyword, or by using pi* to perform fuzzy match. If you set the Delimiter parameter to a forward slash (/) and a period (.), the content of the log is split into the following four words: url , pic , abc , and gif . You can search for the log by using one of the preceding words or by performing fuzzy match.
|
Include Chinese | Specifies whether to distinguish between Chinese content and English content in searches. If you turn on Include Chinese and a log contains Chinese characters, the Chinese content is split based on Chinese grammar. The English content is split by using specified delimiters. Important When Chinese content is split, the write speed is reduced. Proceed with caution. If you turn off Include Chinese, all content of a log is split by using specified delimiters.
|
Enable Analytics | You can perform statistical analysis on a field only if you turn on Enable Analytics for the field. |