Parameter | Type | Description | Example |
---|---|---|---|
object | The Logtail pipeline configuration. | ||
configName | string | The name of the configuration. | test-config |
logSample | string | The sample log. | 127.0.0.1 - - [10/Jun/2022:12:36:49 +0800] "GET /index.html HTTP/1.1" 200 |
global | object | The global configuration. | { "TopicType": "custom", "TopicFormat": "aaa", "EnableAlwaysOnline": true, "EnableTimestampNanosecond": true, "UsingOldContentTag": true } |
inputs | array<object> | The data source plug-ins. | |
object | The data source plug-in. | { "Type": "input_file", "FilePaths": [ "/home/**/*.log" ], "MaxDirSearchDepth": 10, "Multiline": { "StartPattern": "\\d+" }, "TailSizeKB": 1024 } | |
processors | array<object> | The processing plug-ins. | |
object | The processing plug-in. | { "Type": "processor_regex", "SourceKey": "content", "Regex": "(\\d+).*([^;])", "Keys": [ "k1", "k2" ] } | |
aggregators | array<object> | The aggregation plug-ins. | |
object | The aggregation plug-in. | { "Type": "aggregator_shardhash", "SourceKeys": [ "__source__" ] } | |
flushers | array<object> | The data output plug-ins. | |
object | The data output plug-in. | { "Type": "flusher_sls", "Logstore": "test_logstore", "Endpoint": "cn-hangzhou-intranet.aliyuncs.com", "Region": "cn-hangzhou", "FlowControlExpireTime": 2, "MaxSendRate": 3, "EnableShardHash": true, "TelemetryType": "log" } | |
createTime | long | The creation time. The value is a UNIX timestamp. | 1655176807 |
lastModifyTime | long | The last modification time. The value is a UNIX timestamp. | 1655176807 |