When you collect logs to Simple Log Service or ship logs to other cloud services , Simple Log Service adds information such as log sources and timestamps to logs in the Key:Value pair format. The fields that include the preceding information are reserved fields of Simple Log Service. This topic describes the reserved fields of Simple Log Service.
When you call API operations to write data or create Logtail configurations, we recommend that you do not use the names of the reserved fields as field names in the operations. Otherwise, issues such as duplicate field names and inaccurate queries may occur.
Data shipping tasks of the old version do not support the fields that have the
__tag__
prefix.If your Logstore uses the pay-by-ingested-data billing mode, you are not charged for the fields that you add to logs. For more information, see Pay-by-ingested-data.
If your Logstore uses the pay-by-feature billing mode, you are charged for the fields that you add to logs. If you create indexes for the fields, you are charged for index traffic and log storage. For more information, see Pay-by-feature.
Reserved field | Data format | Index and log analysis configuration | Description |
| The value is an integer that represents a UNIX timestamp. |
| The time when a log is written to a Logstore. You can use this field to ship, query, and analyze logs. |
| The value is a string. |
| The machine from which logs are collected. You can use this field to ship, query, analyze, and consume logs. |
| The value is a string. |
| The topic of a log. If you specify a topic for a log, Simple Log Service adds a topic field to the log. The key of the field is |
| The value is a string and can be deserialized into a JSON map. | This field does not exist in logs. You do not need to create an index for this field. | This field is equivalent to the |
| The value is a string. |
| The public IP address of the machine from which logs are collected. This field is a system tag. If you enable the public IP address recording feature, this field is added to each raw log when Simple Log Service receives logs. You can use this field to query, analyze, and consume logs. When you specify this field in an SQL statement, you must enclose this field in double quotation marks (""). For more information, see Log and Manage a Logstore. |
| The value is a string and can be converted into an integer that represents a UNIX timestamp. |
| The time when Simple Log Service receives a log. This field is a system tag. If you enable the public IP address recording feature, this field is added to each raw log when Simple Log Service receives logs. You can use this field to query, analyze, and consume logs. For more information, see Log and Manage a Logstore. |
| The value is a string. |
| The path to the log file from which logs are collected. Logtail automatically adds this field to the collected logs. You can use this field to query, analyze, and consume logs. When you specify this field in an SQL statement, you must enclose this field in double quotation marks (""). |
| The value is a string. |
| The hostname of the machine from which Logtail collects logs. Logtail automatically adds this field to logs. You can use this field to query, analyze, and consume logs. When you specify this field in an SQL statement, you must enclose this field in double quotation marks (""). |
| The value is a string. | You must create and configure an index of the text type for this field and enable the log analysis feature based on your business requirements. | The raw log that fails to be parsed. If you turn off Drop Failed to Parse Logs, Logtail uploads raw logs that fail to be parsed. The key of this field is |
| The value is a string. | You must create and configure an index of the text type for this field and enable the log analysis feature based on your business requirements. | The raw log that is parsed. If you turn on Upload Raw Log, Logtail uploads the raw logs as the |