Update a pipeline
PUT {{baseUrl}}/api/v1/logs/config/pipelines/:pipeline_id
Update a given pipeline configuration to change it’s processors or their order.
Note: Using this method updates your pipeline configuration by replacing your current configuration with the new one sent to your Datadog organization.
Request Body
{"name"=>"", "filter"=>{"query"=>"source:python"}, "id"=>"", "is_enabled"=>false, "is_read_only"=>true, "processors"=>[{"source"=>"message", "grok"=>{"match_rules"=>"rule_name_1 foo\nrule_name_2 bar\n", "support_rules"=>"rule_name_1 foo\nrule_name_2 bar\n"}, "type"=>"grok-parser", "is_enabled"=>false, "name"=>"nulla tempor", "samples"=>["ipsum Duis", "dolore culpa ea est"]}, {"source"=>"message", "grok"=>{"match_rules"=>"rule_name_1 foo\nrule_name_2 bar\n", "support_rules"=>"rule_name_1 foo\nrule_name_2 bar\n"}, "type"=>"grok-parser", "is_enabled"=>false, "name"=>"sunt officia", "samples"=>["ex ullamco occaecat exercitation", "esse aute"]}], "type"=>"pipeline"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"name":"","filter":{"query":"source:python"},"id":"","is_enabled":false,"is_read_only":true,"processors":[{"source":"message","grok":{"match_rules":"rule_name_1 foo\nrule_name_2 bar\n","support_rules":"rule_name_1 foo\nrule_name_2 bar\n"},"type":"grok-parser","is_enabled":false,"name":"nulla tempor","samples":["ipsum Duis","dolore culpa ea est"]},{"source":"message","grok":{"match_rules":"rule_name_1 foo\nrule_name_2 bar\n","support_rules":"rule_name_1 foo\nrule_name_2 bar\n"},"type":"grok-parser","is_enabled":false,"name":"sunt officia","samples":["ex ullamco occaecat exercitation","esse aute"]}],"type":"pipeline"}