Simulate a pipeline
- POST also GET /_ingest/pipeline/{id}/_simulate
- POST also GET /_ingest/pipeline/_simulate
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 authorization
- Cluster privileges read_pipeline
Request body
-
pipelineobject -
The pipeline to test. If you don't specify the
pipelinerequest path parameter, this parameter is required. If you specify both this and the request path parameter, the API only uses the request path parameter. -
on_failureProcessor -
Processors to run immediately after a processor failure.
-
processorsProcessor -
Processors used to perform transformations on documents before indexing. Processors run sequentially in the order specified.
-
deprecatedboolean · default: false -
Marks this ingest pipeline as deprecated. When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning.
-
_metaobject -
Arbitrary metadata about the ingest pipeline. This map is not automatically generated by Elasticsearch.
-
created_dateunion -
Date and time when the pipeline was created. Only returned if the
humanquery parameter istrue. -
created_date_millisnumber -
Date and time when the pipeline was created, in milliseconds since the epoch.
-
modified_dateunion -
Date and time when the pipeline was last modified. Only returned if the
humanquery parameter istrue.
Response
-
docsobjectrequired -
docobject -
_version_type -
Supported values include:
internal: Use internal versioning that starts at 1 and increments with each update or delete.external: Only index the document if the specified version is strictly higher than the version of the stored document or if there is no existing document.external_gte: Only index the document if the specified version is equal or higher than the version of the stored document or if there is no existing document. NOTE: Theexternal_gteversion type is meant for special use cases and should be used with care. If used incorrectly, it can result in loss of data.
-
Values:
internalexternalexternal_gte