Get Logstash pipelines
Generally available; Added in 7.12.0
Get pipelines that are used for Logstash Central Management.
Required authorization
- Cluster privileges:
manage_logstash_pipelines
Path parameters
-
id
string | array[string] Required A comma-separated list of pipeline identifiers.
GET
/_logstash/pipeline/{id}
Console
GET _logstash/pipeline/my_pipeline
resp = client.logstash.get_pipeline(
id="my_pipeline",
)
const response = await client.logstash.getPipeline({
id: "my_pipeline",
});
response = client.logstash.get_pipeline(
id: "my_pipeline"
)
$resp = $client->logstash()->getPipeline([
"id" => "my_pipeline",
]);
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_logstash/pipeline/my_pipeline"
Response examples (200)
A successful response from `GET _logstash/pipeline/my_pipeline`.
{
"my_pipeline": {
"description": "Sample pipeline for illustration purposes",
"last_modified": "2021-01-02T02:50:51.250Z",
"pipeline_metadata": {
"type": "logstash_pipeline",
"version": "1"
},
"username": "elastic",
"pipeline": "input {}\\n filter { grok {} }\\n output {}",
"pipeline_settings": {
"pipeline.workers": 1,
"pipeline.batch.size": 125,
"pipeline.batch.delay": 50,
"queue.type": "memory",
"queue.max_bytes": "1gb",
"queue.checkpoint.writes": 1024
}
}
}