Type to search.

Simulate a pipeline

  • POST also GET /_ingest/pipeline/{id}/_simulate
  • POST also GET /_ingest/pipeline/_simulate
Auth The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats. Availability Generally available since 5.0 This functionality is generally available and ready for production usage. Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

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