Creates a Logtail pipeline configuration.
Operation description
The UK (London) region is supported. Supported regions are constantly updated.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /pipelineconfigs HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
project | string | Yes | The name of the project. | test-project |
body | object | No | The content of the Logtail pipeline configuration. | |
configName | string | Yes | The name of the configuration. | test-config |
logSample | string | No | The sample log. | 2022-06-14 11:13:29.796 | DEBUG | __main__:<module>:1 - hello world |
global | object | No | The global configuration. | |
inputs | array<object> | Yes | The data source plug-ins. | |
object | No | The data source plug-in. | { "Type": "input_file", "FilePaths": ["/var/log/*.log"] } | |
processors | array<object> | No | The processing plug-ins. | |
object | No | The processing plug-in. | { "Type": "processor_parse_json_native", "SourceKey": "content" } | |
aggregators | array<object> | No | The aggregation plug-ins. | |
object | No | The aggregation plug-in. | ||
flushers | array<object> | Yes | The data output plug-ins. | |
object | No | The data output plug-in. | { "Type": "flusher_sls", "Logstore": "test" } |
Response parameters
Examples
Sample success responses
JSON
format
{}
Error codes
For a list of error codes, visit the Service error codes.