Parameter | Type | Description | Example |
---|---|---|---|
object | The data structure of the Logtail configuration. | ||
configName | string | The name of the Logtail configuration. The name must be unique in the project to which the Logtail configuration belongs. After the Logtail configuration is created, you cannot change the name of the Logtail configuration. The name must meet the following requirements:
| test-config |
logSample | string | The sample log. | 2022-06-14 11:13:29.796 | DEBUG | __main__:<module>:1 - hello world |
inputType | string | The type of the data source. Valid values:
| file |
inputDetail | object | The detailed settings of the data source. For more information, see inputDetail . | "logType": "common_reg_log", "logPath": "/var/log/httpd/", "filePattern": "access*.log", "localStorage": true, "timeFormat": "%Y/%m/%d %H:%M:%S", "logBeginRegex": ".*", "regex": "(\w+)(\s+)", "key" :["key1", "key2"], "filterKey":["key1"], "filterRegex":["regex1"], "fileEncoding":"utf8", "topicFormat": "none" |
outputType | string | The type of the data destination. Set the value to LogService. Collected logs can be uploaded to only Simple Log Service. | LogService |
outputDetail | object | The detailed settings of the data destination. For more information, see outputDetail . | |
endpoint | string | The endpoint. For more information, see Endpoints . | cn-hangzhou-intranet.log.aliyuncs.com |
logstoreName | string | The name of the Logstore. | test-logstore |
region | string | The ID of the region. | cn-hangzhou |
telemetryType | string | The type of observable data in the Logstore. | logs |
createTime | long | The time at which the Logtail configuration was created. The value is a UNIX timestamp representing the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC. | 1655176807 |
lastModifyTime | long | The time at which the Logtail configuration was last modified. The value is a UNIX timestamp representing the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC. | 1655176807 |