Delete Logstash pipeline API

edit

Delete Logstash pipeline API

edit

This API deletes a pipeline used for Logstash Central Management.

Request

edit

DELETE _logstash/pipeline/<pipeline_id>

Prerequisites

edit
  • If the Elasticsearch security features are enabled, you must have the manage_logstash_pipelines cluster privilege to use this API.

Description

edit

Deletes a Logstash pipeline.

Path parameters

edit
<pipeline_id>
(Required, string) Identifier for the Pipeline.

Examples

edit

The following example deletes the Pipeline named my_pipeline:

resp = client.logstash.delete_pipeline(
    id="my_pipeline",
)
print(resp)
response = client.logstash.delete_pipeline(
  id: 'my_pipeline'
)
puts response
const response = await client.logstash.deletePipeline({
  id: "my_pipeline",
});
console.log(response);
DELETE _logstash/pipeline/my_pipeline

If the request succeeds, you receive an empty response with an appropriate status code.