younifyd
Menu

Simulate data ingestion (POST /_ingest/{index}/_simulate)

Simulate data ingestion

POST/_ingest/{index}/_simulate

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Simulate data ingestion (POST /_ingest/{index}/_simulate) action (under ingest).
  3. Fill in the fields below, then reference the result from later steps as {{simulateDataIngestionPostIngestIndexSimulate.response.data}}.

Request

Path parameters

indexstringrequired

The index to simulate ingesting into. This value can be overridden by specifying an index on each document. If you specify this parameter in the request path, it is used for any documents that do not explicitly specify an index argument.

Query parameters

pipelinestring

The pipeline to use as the default pipeline. This value can be used to override the default pipeline of the index.

merge_typestring

The mapping merge type if mapping overrides are being provided in mapping_addition. The allowed values are one of index or template. The index option merges mappings the way they would be merged into an existing index. The template option merges mappings the way they would be merged into a template.

One ofindextemplate

Response

Returns 200 with an object. Read it in later steps with {{simulateDataIngestionPostIngestIndexSimulate.response.data.<field>}}.

docsarray<object>
docany
json
{
  "docs": [
    {
      "doc": null
    }
  ]
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.