Preview a transform

  • POST also GET /_transform/{transform_id}/_preview
  • POST also GET /_transform/_preview

Generates a preview of the results that you will get when you create a transform with the same configuration.

It returns a maximum of 100 results. The calculations are based on all the current data in the source index. It also generates a list of mappings and settings for the destination index. These values are determined based on the field types of the source index and the transform aggregations.

  • Index privileges: read,view_index_metadata
  • Cluster privileges: manage_transform

Path Parameters

transform_id string Id optional

Identifier for the transform to preview. If you specify this path parameter, you cannot provide transform configuration details in the request body.

Leave it out to use /_transform/_preview.

Query Parameters

timeout string Duration · default: 30s

Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

Response