All Products
Search
Document Center

Simple Log Service:LogtailPipelineConfig

Last Updated:Nov 28, 2024
ParameterTypeDescriptionExample
object

The Logtail pipeline configuration.

configNamestring

The name of the configuration.

test-config
logSamplestring

The sample log.

127.0.0.1 - - [10/Jun/2022:12:36:49 +0800] "GET /index.html HTTP/1.1" 200
globalobject

The global configuration.

{ "TopicType": "custom", "TopicFormat": "aaa", "EnableAlwaysOnline": true, "EnableTimestampNanosecond": true, "UsingOldContentTag": true }
inputsarray<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 }
processorsarray<object>

The processing plug-ins.

object

The processing plug-in.

{ "Type": "processor_regex", "SourceKey": "content", "Regex": "(\\d+).*([^;])", "Keys": [ "k1", "k2" ] }
aggregatorsarray<object>

The aggregation plug-ins.

object

The aggregation plug-in.

{ "Type": "aggregator_shardhash", "SourceKeys": [ "__source__" ] }
flushersarray<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" }
createTimelong

The creation time. The value is a UNIX timestamp.

1655176807
lastModifyTimelong

The last modification time. The value is a UNIX timestamp.

1655176807