I was able to restore a snapshot recently.
Is there a way for Elastic / Kibana to show how long the restore took (Full time)? There does not appear to be a definitive way.
I seemed to find two ways to find this data:
- Use this URL path for an api call
I see this data in the payload. Its not clear whathttps://<host>/search/_snapshot/<snapshot repository>/<specific Snapshot>/_status? pretty
snapshot[1].stats.time_in_millis
is ? Is this the total time it took the restore to run? If so its not accurate:{ "snapshots": [ { "snapshot": <snapshot name>, "repository": <snapshot repository>, "uuid": "dBCFEdE_RwCf9kg1234567", "state": "SUCCESS", "include_global_state": true, "shards_stats": { "initializing": 0, "started": 0, "finalizing": 0, "done": 551, "failed": 0, "total": 551 }, "stats": { "incremental": { "file_count": 587, "size_in_bytes": 92046051 }, "total": { "file_count": 10662, "size_in_bytes": 483829905011 }, "start_time_in_millis": 1727123399856, "time_in_millis": 4602 },
- If I go into Kibana. I can go to
Hamburger Menu > Stack Management > Snapshot and Restore > Restore Status
from here I can see all the indexes that were restored. There does not appear to be a place I can check how long all of the restore took. But I can surmise how long it took by sorting theLast activity
column. Then I can go to the first page and last page to determine how long it took.
Are these the only two ways? I really don't want to have to use Kibana to look up this info. Mainly because our snapshots back up ALL indexes (*
), which means I cannot run Kibana while I do the restore, I have to turn it off.
I need a way to check if the restore completed and how long it took from the API. Is there a way to check this?