kibana/docs/api/logstash-configuration-management/create.asciidoc
Kaarina Tungseth 925dfab588
[DOCS] New template for APIs (#39298)
* Clean up

* Dashboard export API

* More changes

* role-management and saved-objects

* Clean up

* Final clean up

* Clean up

* Moved labels to appropriate places

* Fixed rogue commits
2019-09-06 11:09:57 -05:00

55 lines
1.5 KiB
Text

[role="xpack"]
[[logstash-configuration-management-api-create]]
=== Create Logstash pipeline API
++++
<titleabbrev>Create pipeline</titleabbrev>
++++
Create a centrally-managed Logstash pipeline, or update an existing pipeline.
experimental[This functionality is *experimental* and may be changed or removed completely in a future release.]
[[logstash-configuration-management-api-create-request]]
==== Request
`PUT /api/logstash/pipeline/<id>`
[[logstash-configuration-management-api-create-params]]
==== Path parameters
`id`::
(Required, string) The pipeline ID. Only alphanumeric characters, hyphens, and underscores are supported.
[[logstash-configuration-management-api-create-request-body]]
==== Request body
`description`::
(Optional, string) The pipeline description.
`pipeline`::
(Required, string) The pipeline definition.
`settings`::
(Optional, object) The pipeline settings. Supported settings, represented as object keys, are `pipeline.workers`, `pipeline.batch.size`, `pipeline.batch.delay`, `queue.type`, `queue.max_bytes`, and `queue.checkpoint.writes`.
[[logstash-configuration-management-api-create-codes]]
==== Response code
`204 No Content`::
Indicates a successful call.
[float]
[[logstash-configuration-management-api-create-example]]
==== Example
[source,js]
--------------------------------------------------
PUT api/logstash/pipeline/hello-world
{
"pipeline": "input { stdin {} } output { stdout {} }",
"settings": {
"queue.type": "persisted"
}
}
--------------------------------------------------
// KIBANA