---
type: api
title: Get a Logstash pipeline
description: Get information for a centrally-managed Logstash pipeline.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v9/operation/operation-get-logstash-pipeline
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v9/operation/operation-get-logstash-pipeline
products:
  - Kibana
---

# Get a Logstash pipeline

Availability: Preview

- Server: `https://{kibana_url}`

## Paths

- `GET` `/api/logstash/pipeline/{id}`

#### Path parameters

- `id` (string) — required
  An identifier for the pipeline.

## Description

Get information for a centrally-managed Logstash pipeline.
To use this API, you must have either the `logstash_admin` built-in role or a customized Logstash reader role.

[Secure your connection](https://www.elastic.co/docs/reference/logstash/secure-connection)

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

## Response

Indicates a successful call

`application/json`

Type: `object`

## Code examples

#### Console

```console
GET kbn:/api/logstash/pipeline/ID
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/logstash/pipeline/${ID}" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Get logstash pipeline response example1

```json
{
  "id": "hello-world",
  "description": "Just a simple pipeline",
  "username": "elastic",
  "pipeline": "input { stdin {} } output { stdout {} }",
  "settings": {
    "queue.type": "persistent"
  }
}
```

