# Snapshot restore -- How to check how long the restore took?

**URL:** <https://discuss.elastic.co/t/snapshot-restore-how-to-check-how-long-the-restore-took/367071>\
**Category:** Kibana\
**Tags:** snapshot-and-restore\
**Created:** [September 24, 2024, 6:55pm UTC](https://discuss.elastic.co/t/snapshot-restore-how-to-check-how-long-the-restore-took/367071 "2024-09-24T18:55:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave\_Houser](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dave_houser/32/72517_2.png) [@Dave\_Houser](https://discuss.elastic.co/u/Dave_Houser)\
**Post date:** [September 24, 2024, 6:55pm UTC](https://discuss.elastic.co/t/snapshot-restore-how-to-check-how-long-the-restore-took/367071/1 "2024-09-24T18:55:22Z")

</div>

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:

1. Use this URL path for an api call

```auto
https://<host>/search/_snapshot/<snapshot repository>/<specific Snapshot>/_status? pretty

```

I see this data in the payload. Its not clear what `snapshot[1].stats.time_in_millis` is ? Is this the total time it took the restore to run? If so its not accurate:

```auto
{
  "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
      },

```

2. 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 the `Last 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?

---

<div class="post-metadata">

**Author:** ![Alex\_Salgado-Elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_salgado-elastic/32/103081_2.png) [@Alex\_Salgado-Elastic](https://discuss.elastic.co/u/Alex_Salgado-Elastic)\
**Post date:** [September 25, 2024, 3:38am UTC](https://discuss.elastic.co/t/snapshot-restore-how-to-check-how-long-the-restore-took/367071/2 "2024-09-25T03:38:08Z")

</div>

Hi @Dave_Houser

Have you tried it?

> **[Get snapshot status API | Elasticsearch Guide \[8.15\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/get-snapshot-status-api.html)**

---

<div class="post-metadata">

**Author:** ![Dave\_Houser](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dave_houser/32/72517_2.png) [@Dave\_Houser](https://discuss.elastic.co/u/Dave_Houser)\
**Post date:** [September 25, 2024, 1:27pm UTC](https://discuss.elastic.co/t/snapshot-restore-how-to-check-how-long-the-restore-took/367071/3 "2024-09-25T13:27:57Z")

</div>

Thanks for the reply. Is there a specific part of this guide you are referring for me to try? Because my post details how I am checking the status of a specific snapshot with the API. It does give a bunch of stats but does not detail how long the snapshot took to restore. Can you be more specific what I should be looking at in the guide?

---

<div class="post-metadata">

**Author:** ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)\
**Post date:** [January 20, 2025, 3:26pm UTC](https://discuss.elastic.co/t/snapshot-restore-how-to-check-how-long-the-restore-took/367071/5 "2025-01-20T15:26:48Z")

</div>

I don't know much here, but does not the restored indices go into open state at end of successful restore? And is that not logged in the elasticsearch log itself (which seems to be pretty verbose in general)

---

<div class="post-metadata">

**Author:** ![EmvsDev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emvsdev/32/140787_2.png) [@EmvsDev](https://discuss.elastic.co/u/EmvsDev)\
**Post date:** [January 20, 2025, 3:43pm UTC](https://discuss.elastic.co/t/snapshot-restore-how-to-check-how-long-the-restore-took/367071/6 "2025-01-20T15:43:13Z")

</div>

@DavidTurner , @Christian_Dahlqvist  
Can you please have a look !!

---

<div class="post-metadata">

**Author:** ![EmvsDev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emvsdev/32/140787_2.png) [@EmvsDev](https://discuss.elastic.co/u/EmvsDev)\
**Post date:** [January 20, 2025, 3:46pm UTC](https://discuss.elastic.co/t/snapshot-restore-how-to-check-how-long-the-restore-took/367071/7 "2025-01-20T15:46:00Z")

</div>

Hi @Dave_Houser did you found any resolution/fix for your queries ?  
I have similar issue, but in my research I did not found any fix for me.  
If you can share your fix, that will help me!!

@DavidTurner need your inputs here..

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 20, 2025, 4:05pm UTC](https://discuss.elastic.co/t/snapshot-restore-how-to-check-how-long-the-restore-took/367071/8 "2025-01-20T16:05:31Z")

</div>

This is a community forum manned by volunteers. It is considered quite rude to just ping people not already involved in the thread.

It is generally recommended that you open your own new topic rather than just add to an existing one as your sitation may not be exactly what was described and you may be using a different version. In order to enhance the chance of someone being able to help you, please provide as much details as possible.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [January 20, 2025, 4:46pm UTC](https://discuss.elastic.co/t/snapshot-restore-how-to-check-how-long-the-restore-took/367071/9 "2025-01-20T16:46:34Z")

</div>


