Simulate a pipeline

  • POST also GET /_ingest/pipeline/{id}/_simulate
  • POST also GET /_ingest/pipeline/_simulate
Auth

Run an ingest pipeline against a set of provided documents. You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request.

Required privileges

Cluster privileges read_pipeline

Path parameters

id string optional

The pipeline to test. If you don't specify a pipeline in the request body, this parameter is required.

Leave it out to use /_ingest/pipeline/_simulate.

Query parameters

verbose boolean · default: false

If true, the response includes output data for each processor in the executed pipeline.

Request body

docs object[] required

Sample documents to test in the pipeline.

_id string

Unique identifier for the document. This ID must be unique within the _index.

_index string

Name of the index containing the document.

_source object required

JSON body for the document.

Response

application/json
docs object[] required