|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
A Logtail pipeline configuration. |
||
| configName |
string |
The configuration name. |
test-config |
| logSample |
string |
A sample log entry. |
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 |
The data source plugins. |
|
|
object |
A data source plugin. |
{ "Type": "input_file", "FilePaths": [ "/home/**/*.log" ], "MaxDirSearchDepth": 10, "Multiline": { "StartPattern": "\\d+" }, "TailSizeKB": 1024 } |
|
| processors |
array |
The processing plugins. |
|
|
object |
A processing plugin. |
{ "Type": "processor_regex", "SourceKey": "content", "Regex": "(\\d+).*([^;])", "Keys": [ "k1", "k2" ] } |
|
| aggregators |
array |
The aggregation plugins. |
|
|
object |
An aggregation plugin. |
{ "Type": "aggregator_shardhash", "SourceKeys": [ "__source__" ] } |
|
| flushers |
array |
The data output plugins. |
|
|
object |
A data output plugin. |
{ "Type": "flusher_sls", "Logstore": "test_logstore", "Endpoint": "cn-hangzhou-intranet.aliyuncs.com", "Region": "cn-hangzhou", "FlowControlExpireTime": 2, "MaxSendRate": 3, "EnableShardHash": true, "TelemetryType": "log" } |
|
| createTime |
integer |
The creation time, as a UNIX timestamp. |
1655176807 |
| lastModifyTime |
integer |
The last modification time, as a UNIX timestamp. |
1655176807 |
| task |
object |
The task configuration. |
{"Type": "task_example"} |