Create or update a Logstash pipeline

  • PUT /_logstash/pipeline/{id}
Auth

Create a pipeline that is used for Logstash Central Management. If the specified pipeline exists, it is replaced.

Read the reference documentation

Required authorization

Cluster privileges manage_logstash_pipelines

Path parameters

id string required

An identifier for the pipeline.

Request body

description string required

A description of the pipeline. This description is not used by Elasticsearch or Logstash.

last_modified union oneOf required

The date the pipeline was last updated. It must be in the yyyy-MM-dd'T'HH:mm:ss.SSSZZ strict_date_time format.

One of: string or number
pipeline string required

The configuration for the pipeline.

pipeline_metadata object required

Optional metadata about the pipeline, which can have any contents. This metadata is not generated or used by Elasticsearch or Logstash.

type string required
version string required
pipeline_settings object required

Settings for the pipeline. It supports only flat keys in dot notation.

pipeline.workers number required

The number of workers that will, in parallel, execute the filter and output stages of the pipeline.

pipeline.batch.size number required

The maximum number of events an individual worker thread will collect from inputs before attempting to execute its filters and outputs.

pipeline.batch.delay number required

When creating pipeline event batches, how long in milliseconds to wait for each event before dispatching an undersized batch to pipeline workers.

queue.type string required

The internal queuing model to use for event buffering.

queue.max_bytes string required

The total capacity of the queue (queue.type: persisted) in number of bytes.

queue.checkpoint.writes number required

The maximum number of written events before forcing a checkpoint when persistent queues are enabled (queue.type: persisted).

username string required

The user who last updated the pipeline.

Response

200 application/json