Get transform stats Added in 7.5.0

GET /_transform/{transform_id}/_stats

Retrieves usage information for transforms.

Path parameters

  • transform_id string | array[string] Required

    Identifier for the transform. It can be a transform identifier or a wildcard expression. You can get information for all transforms by using _all, by specifying * as the <transform_id>, or by omitting the <transform_id>.

Query parameters

  • Specifies what to do when the request:

    1. Contains wildcard expressions and there are no transforms that match.
    2. Contains the _all string or no identifiers and there are no matches.
    3. Contains wildcard expressions and there are only partial matches.

    If this parameter is false, the request returns a 404 status code when there are no matches or only partial matches.

  • from number

    Skips the specified number of transforms.

  • size number

    Specifies the maximum number of transforms to obtain.

  • timeout string

    Controls the time to wait for the stats

Responses

GET /_transform/{transform_id}/_stats
curl \
 -X GET http://api.example.com/_transform/{transform_id}/_stats
Response examples (200)
{
  "count": 42.0,
  "transforms": [
    {
      "checkpointing": {
        "changes_last_detected_at": 42.0,
        "": "string",
        "last": {
          "checkpoint": 42.0,
          "checkpoint_progress": {
            "docs_indexed": 42.0,
            "docs_processed": 42.0,
            "docs_remaining": 42.0,
            "percent_complete": 42.0,
            "total_docs": 42.0
          },
          "": 42.0
        },
        "next": {
          "checkpoint": 42.0,
          "checkpoint_progress": {
            "docs_indexed": 42.0,
            "docs_processed": 42.0,
            "docs_remaining": 42.0,
            "percent_complete": 42.0,
            "total_docs": 42.0
          },
          "": 42.0
        },
        "operations_behind": 42.0,
        "last_search_time": 42.0
      },
      "health": {
        "status": "green"
      },
      "id": "string",
      "node": {
        "attributes": {
          "additionalProperty1": "string",
          "additionalProperty2": "string"
        },
        "ephemeral_id": "string",
        "id": "string",
        "name": "string",
        "transport_address": "string"
      },
      "reason": "string",
      "state": "string",
      "stats": {
        "": 42.0,
        "documents_indexed": 42.0,
        "documents_deleted": 42.0,
        "documents_processed": 42.0,
        "exponential_avg_documents_indexed": 42.0,
        "exponential_avg_documents_processed": 42.0,
        "index_failures": 42.0,
        "index_total": 42.0,
        "pages_processed": 42.0,
        "processing_total": 42.0,
        "search_failures": 42.0,
        "search_total": 42.0,
        "trigger_count": 42.0
      }
    }
  ]
}