Delete Logstash pipeline API
Delete Logstash pipeline API
New API reference
For the most up-to-date API details, refer to Logstash APIs.
This API deletes a pipeline used for Logstash Central Management.
Request
DELETE _logstash/pipeline/<pipeline_id>
Prerequisites
- If the Elasticsearch security features are enabled, you must have the
manage_logstash_pipelines
cluster privilege to use this API.
Description
Deletes a Logstash pipeline.
Path parameters
<pipeline_id>
(Required, string) Identifier for the Pipeline.
Examples
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.
当前内容版权归 elasticsearch 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 elasticsearch .