# Unable to export Kibana dashboard

**URL:** <https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080>\
**Category:** Kibana\
**Created:** [February 23, 2022, 7:49pm UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080 "2022-02-23T19:49:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)\
**Post date:** [February 23, 2022, 7:49pm UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/1 "2022-02-23T19:49:52Z")

</div>

Hi All. I am using ELK7.6.2 stack.

When I try to export a dashboard I get a 404 error. Please see below

```auto
$ curl -k -u user:password -X GET "http://`hostname`:5601/api/kibana/dashboards/export?dashboard=93454870-94dc-11ec-bd98-01e00d252921" -H 'kbn-xsrf: true'

```

The response is as follows:

```auto
{"statusCode":404,"error":"Not Found","message":"Not Found"} 

```

I am referring to [Export dashboard API | Kibana Guide [8.0] | Elastic](https://www.elastic.co/guide/en/kibana/current/dashboard-api-export.html)

Note that user has "superuser" level access.

Please guide.

---

<div class="post-metadata">

**Author:** ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)\
**Post date:** [February 27, 2022, 4:48pm UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/2 "2022-02-27T16:48:22Z")

</div>

Any help on this would be appreciated. thanks

---

<div class="post-metadata">

**Author:** ![majagrubic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majagrubic/32/74459_2.png) [@majagrubic](https://discuss.elastic.co/u/majagrubic)\
**Post date:** [February 28, 2022, 7:26am UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/3 "2022-02-28T07:26:19Z")

</div>

Have you verified that the dashboard actually exists?

---

<div class="post-metadata">

**Author:** ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)\
**Post date:** [February 28, 2022, 12:57pm UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/4 "2022-02-28T12:57:05Z")

</div>

Hello. Thanks and yes. I copied the dashboard ID from the URL in browser.

 ![2d](https://us1.discourse-cdn.com/elastic/original/3X/c/f/cfcc8776c726b2e229f6bb0a8802089f39ff27a6.png)

Please let me know if this is not the right place to pick the dashboardID  
(93454870-94dc-11ec-bd98-01e00d252921)from.

Thanks

---

<div class="post-metadata">

**Author:** ![majagrubic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majagrubic/32/74459_2.png) [@majagrubic](https://discuss.elastic.co/u/majagrubic)\
**Post date:** [March 9, 2022, 4:05pm UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/5 "2022-03-09T16:05:44Z")

</div>

This is the right place to get the ID! If you go to Kibana \> Saved Objects, do you see the dashboard in there?

---

<div class="post-metadata">

**Author:** ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)\
**Post date:** [March 9, 2022, 4:55pm UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/6 "2022-03-09T16:55:47Z")

</div>

Thanks. Yes it does show in the Saved objects

---

<div class="post-metadata">

**Author:** ![majagrubic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majagrubic/32/74459_2.png) [@majagrubic](https://discuss.elastic.co/u/majagrubic)\
**Post date:** [March 9, 2022, 6:17pm UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/7 "2022-03-09T18:17:36Z")

</div>

What worked for me was omitting `http` from the curl request and adding the Kibana's server hash before the `/api` part of the URL. So something like:  
curl -X GET --user username:password "localhost:5601/ **ogp** /api/kibana/dashboards/export?dashboard=\<dashboard\_id\>"

---

<div class="post-metadata">

**Author:** ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)\
**Post date:** [March 9, 2022, 6:20pm UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/8 "2022-03-09T18:20:11Z")

</div>

Sorry how can I get the Kibana server hash?

---

<div class="post-metadata">

**Author:** ![majagrubic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majagrubic/32/74459_2.png) [@majagrubic](https://discuss.elastic.co/u/majagrubic)\
**Post date:** [March 9, 2022, 6:40pm UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/9 "2022-03-09T18:40:44Z")

</div>

That's just for localhost. If you're not running on localhost, you don't need that. Just try omitting `http` from the curl request.

---

<div class="post-metadata">

**Author:** ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)\
**Post date:** [March 9, 2022, 7:05pm UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/10 "2022-03-09T19:05:04Z")

</div>

Still the same ☹

```auto
$ curl -X GET --user <user>:<password> "`hostname`:5601/api/kibana/dashboards/export?dashboard=79bd1830-9421-11ec-b354-fba005626143"

{"statusCode":404,"error":"Not Found","message":"Not Found"}

```

---

<div class="post-metadata">

**Author:** ![majagrubic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majagrubic/32/74459_2.png) [@majagrubic](https://discuss.elastic.co/u/majagrubic)\
**Post date:** [March 9, 2022, 7:08pm UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/11 "2022-03-09T19:08:29Z")

</div>

And when you try executing the request from the browser, does it work then?

---

<div class="post-metadata">

**Author:** ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)\
**Post date:** [March 9, 2022, 8:32pm UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/12 "2022-03-09T20:32:57Z")

</div>

Browser also gives:

```auto
{"statusCode":404,"error":"Not Found","message":"Not Found"}

```

---

<div class="post-metadata">

**Author:** ![majagrubic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majagrubic/32/74459_2.png) [@majagrubic](https://discuss.elastic.co/u/majagrubic)\
**Post date:** [March 10, 2022, 5:59am UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/13 "2022-03-10T05:59:29Z")

</div>

I'm running out of ideas here, but I would still double-checked your URL. You can also access the 7.6 version documentation here: [Export dashboard API | Kibana Guide [7.6] | Elastic](https://www.elastic.co/guide/en/kibana/7.6/dashboard-api-export.html)

---

<div class="post-metadata">

**Author:** ![majagrubic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majagrubic/32/74459_2.png) [@majagrubic](https://discuss.elastic.co/u/majagrubic)\
**Post date:** [March 10, 2022, 6:01am UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/14 "2022-03-10T06:01:42Z")

</div>

One more thing: Are you running Kibana with or without security? If you're running with, then what roles does the user have? Is it possible the user is either unauthenticated, or under privileged? In order for the export to work from the browser, you need to be logged in to Kibana, as a user with privileges.

Also: Do you have access to Kibana logs? If you could paste a detailed error around the export failure, that would be great.

---

<div class="post-metadata">

**Author:** ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)\
**Post date:** [March 10, 2022, 3:36pm UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/15 "2022-03-10T15:36:22Z")

</div>

Thanks for your time. Yes I am using security and the user is "superuser". Kibana logs only show following:

```auto
{"type":"response","@timestamp":"2022-03-10T15:35:07Z","tags":[],"pid":8418,"method":"get","statusCode":404,"req":{"url":"/api/kibana/dashboards/export?dashboard=79bd1830-9421-11ec-b354-fba005626143","method":"get","headers":{"user-agent":"curl/7.29.0","host":"xxx.xxx.xxx.xx:5601","accept":"*/*"},"remoteAddress":"16.18.13.13","userAgent":"16.18.13.13"},"res":{"statusCode":404,"responseTime":111,"contentLength":9},"message":"GET /api/kibana/dashboards/export?dashboard=79bd1830-9421-11ec-b354-fba005626143 404 111ms - 9.0B"}

```

---

<div class="post-metadata">

**Author:** ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)\
**Post date:** [March 11, 2022, 9:49pm UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/16 "2022-03-11T21:49:14Z")

</div>

Could it be because we are using basic license?

---

<div class="post-metadata">

**Author:** ![majagrubic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majagrubic/32/74459_2.png) [@majagrubic](https://discuss.elastic.co/u/majagrubic)\
**Post date:** [March 14, 2022, 2:48pm UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/17 "2022-03-14T14:48:23Z")

</div>

I don't think it's due to license, this should work for basic license, but I will double check.

---

<div class="post-metadata">

**Author:** ![majagrubic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majagrubic/32/74459_2.png) [@majagrubic](https://discuss.elastic.co/u/majagrubic)\
**Post date:** [March 14, 2022, 5:58pm UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/18 "2022-03-14T17:58:32Z")

</div>

Double-checked, the API isn’t license restricted. in 7.6 it’s in the apache OSS build.  
We might have a new lead, though. ? The Dashboard API doesn't support search across spaces, so if you are searching for a dashboard in a non-default space it may not work. Is your dashboard in a non-default space? Can you try exporting some dashboard from a default space?

---

<div class="post-metadata">

**Author:** ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)\
**Post date:** [March 14, 2022, 6:49pm UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/19 "2022-03-14T18:49:37Z")

</div>

Hello and thanks for following up.

The dashboard I am trying to export is in "Default" space. See below

![image](https://us1.discourse-cdn.com/elastic/original/3X/2/7/2749f983939222fb462495aef23daa5b20ee8d5d.png)

---

<div class="post-metadata">

**Author:** ![majagrubic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majagrubic/32/74459_2.png) [@majagrubic](https://discuss.elastic.co/u/majagrubic)\
**Post date:** [March 14, 2022, 6:51pm UTC](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080/20 "2022-03-14T18:51:57Z")

</div>

Are you using `server.basePath` setting in `kibana.yml`?

[Next page](https://discuss.elastic.co/t/unable-to-export-kibana-dashboard/298080.md?page=2)
