Create a centrally-managed Logstash pipeline or update a pipeline.
To use this API, you must have either the logstash_admin built-in role or a customized Logstash writer role.
Path parameters
-
An identifier for the pipeline. Pipeline ID must begin with a letter or underscore and can contain only letters, underscores, dashes, hyphens, and numbers.
Body
-
A description of the pipeline.
Maximum length is
1024. -
A definition for the pipeline.
-
Supported settings, represented as object keys, include the following:
pipeline.workerspipeline.batch.sizepipeline.batch.delaypipeline.ecs_compatibilitypipeline.orderedqueue.typequeue.max_bytesqueue.checkpoint.writes
PUT
/api/logstash/pipeline/{id}
curl \
--request PUT 'https://localhost:5601/api/logstash/pipeline/{id}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '"{\n \"pipeline\": \"input { stdin {} } output { stdout {} }\",\n \"settings\": {\n \"queue.type\": \"persisted\"\n }\n}"'
Request example
{
"pipeline": "input { stdin {} } output { stdout {} }",
"settings": {
"queue.type": "persisted"
}
}