Get transform stats Added in 7.5.0
Get usage information for transforms.
Path parameters
-
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
-
allow_no_match boolean
Specifies what to do when the request:
- Contains wildcard expressions and there are no transforms that match.
- Contains the _all string or no identifiers and there are no matches.
- 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
GET
/_transform/{transform_id}/_stats
curl \
--request GET http://api.example.com/_transform/{transform_id}/_stats
Response examples (200)
A successful response that contains usage information for a transform.
{
"count": 1,
"transforms": [
{
"id": "ecommerce-customer-transform",
"node": {
"id": "cpTIGMsVQ8Gqwqlxxxxxxx",
"name": "my.home",
"attributes": {},
"ephemeral_id": "5-L21nFsQxxxxxxxxxx-xx",
"transport_address": "127.0.0.1:9300"
},
"state": "started",
"stats": {
"index_total": 20,
"search_total": 78,
"trigger_count": 168,
"index_failures": 0,
"pages_processed": 78,
"search_failures": 0,
"index_time_in_ms": 412,
"processing_total": 78,
"delete_time_in_ms": 214,
"documents_deleted": 22,
"documents_indexed": 68,
"search_time_in_ms": 353,
"documents_processed": 6027,
"processing_time_in_ms": 8,
"exponential_avg_documents_indexed": "2.2064915040974062",
"exponential_avg_documents_processed": "179.89419945785045",
"exponential_avg_checkpoint_duration_ms": 97.30637923893185
},
"health": {
"status": "green"
},
"checkpointing": {
"last": {
"checkpoint": 20,
"timestamp_millis": 1585344558220,
"time_upper_bound_millis": 1585344498220
},
"changes_last_detected_at": 1585344558219
}
}
]
}