|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
The Logtail configuration data structure. |
||
| configName |
string |
The name of the Logtail configuration. The name must be unique within the project to which the configuration belongs. The name cannot be modified after the Logtail configuration is created. Naming rules:
|
test-config |
| createTime |
integer |
The time when the Logtail configuration was created. This value is a UNIX timestamp representing the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1655176807 |
| inputDetail |
object |
The configuration of the log input. For more information, see inputDetail parameter description. |
"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" |
| inputType |
string |
The method of log input. Valid values:
|
file |
| lastModifyTime |
integer |
The time when the Logtail configuration was last updated. This value is a UNIX timestamp representing the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1655176807 |
| logSample |
string |
The log sample. |
2022-06-14 11:13:29.796 | DEBUG | __main__: |
| outputDetail |
object |
The configuration of the log output. For more information, see outputDetail parameter description. |
|
| endpoint |
string |
The endpoint. For more information, see Endpoints. |
cn-hangzhou-intranet.log.aliyuncs.com |
| logstoreName |
string |
The Logstore name. |
test-logstore |
| region |
string |
The region ID. |
cn-hangzhou |
| telemetryType |
string |
The observable data type of the destination Logstore. |
logs |
| outputType |
string |
The method of log output. Only LogService is supported, which means data can only be uploaded to Simple Log Service. |
LogService |