Get pipeline API

Returns information about one or more ingest pipelines. This API returns a local reference of the pipeline.

  1. GET /_ingest/pipeline/my-pipeline-id

Request

GET /_ingest/pipeline/<pipeline>

GET /_ingest/pipeline

Path parameters

<pipeline>

(Optional, string) Comma-separated list or wildcard expression of pipeline IDs used to limit the request.

Query parameters

master_timeout

(Optional, time units) Specifies the period of time to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to 30s.

Examples

Get information for a specific ingest pipeline

  1. GET /_ingest/pipeline/my-pipeline-id

The API returns the following response:

  1. {
  2. "my-pipeline-id" : {
  3. "description" : "describe pipeline",
  4. "version" : 123,
  5. "processors" : [
  6. {
  7. "set" : {
  8. "field" : "foo",
  9. "value" : "bar"
  10. }
  11. }
  12. ]
  13. }
  14. }

Get the version of an ingest pipeline

When you create or update an ingest pipeline, you can specify an optional version parameter. The version is useful for managing changes to pipeline and viewing the current pipeline for an ingest node.

To check the pipeline version, use the filter_path query parameter to filter the response to only the version.

  1. GET /_ingest/pipeline/my-pipeline-id?filter_path=*.version

The API returns the following response:

  1. {
  2. "my-pipeline-id" : {
  3. "version" : 123
  4. }
  5. }