# No longer possible to Embed the Discover page?

**URL:** <https://discuss.elastic.co/t/no-longer-possible-to-embed-the-discover-page/355341>\
**Category:** Kibana\
**Created:** [March 13, 2024, 9:50pm UTC](https://discuss.elastic.co/t/no-longer-possible-to-embed-the-discover-page/355341 "2024-03-13T21:50:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![silentfilm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/silentfilm/32/44348_2.png) [@silentfilm](https://discuss.elastic.co/u/silentfilm)\
**Post date:** [March 13, 2024, 9:50pm UTC](https://discuss.elastic.co/t/no-longer-possible-to-embed-the-discover-page/355341/1 "2024-03-13T21:50:09Z")

</div>

My company has been using Elasticsearch and Kibana for years. We are currently running version 8.8.2, but need to upgrade due to CVEs in that version. I've been tasked to upgrade to 8.12.1.

In our product, we embed Kibana dashboards and the Kibana discover page in our Administrative Tools GUI. We don't allow our customer access to other Kibana functions in our GUI.

Since at least Kibana 5.x, we've been able to embed dashboards and the Discover page using a URL like this:

```auto
https://aln-nbadev4.labs.server.com:8443/admin/api/kibana/app/discover#/?_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-15m,mode:quick,to:now))&embed=true&_a=h@1cb4551

```

This would display the dashboard or Discover in our frame. However, in 8.12.1 (and I tried 8.11.4 too), the Discover page looks like this:

 ![kibana8.12.1_logs](https://us1.discourse-cdn.com/elastic/original/3X/4/4/445ef1f13a86000b0b149e923610d2e6a3a51ad3.png)

We get this very abbreviated display (with no bar chart) on Firefox, Chrome, and MS Edge.

I discovered that if I took out the "&embed=true" parameter, then the Discover screen appears normal again. However, we get the Elastic help bar and the Kibana main menu, which we do not want.

 ![embed_log_screen](https://us1.discourse-cdn.com/elastic/original/3X/e/b/ebd71793c78da1787a4ed9cc48f3f7050be1a790.png)

Is it no longer possible to embed the Discover page? Have you discontinued the old way of embedding, and now you have to embed only using [this method](https://www.elastic.co/guide/en/kibana/8.12/reporting-getting-started.html#embed-code)?

---

<div class="post-metadata">

**Author:** ![jughosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jughosta/32/107160_2.png) [@jughosta](https://discuss.elastic.co/u/jughosta)\
**Post date:** [March 14, 2024, 7:56am UTC](https://discuss.elastic.co/t/no-longer-possible-to-embed-the-discover-page/355341/2 "2024-03-14T07:56:52Z")

</div>

Hi @silentfilm,

How does it look for you in 8.8.2?

---

<div class="post-metadata">

**Author:** ![silentfilm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/silentfilm/32/44348_2.png) [@silentfilm](https://discuss.elastic.co/u/silentfilm)\
**Post date:** [March 14, 2024, 1:53pm UTC](https://discuss.elastic.co/t/no-longer-possible-to-embed-the-discover-page/355341/3 "2024-03-14T13:53:48Z")

</div>

![logs_screen_kibana8.8.2](https://us1.discourse-cdn.com/elastic/original/3X/2/c/2c70bd0af54681f6902b1fc20c079c48b1346eef.png)  
With Elasticsearch/Filebeat/Kibana 8.8.2...

---

<div class="post-metadata">

**Author:** ![jughosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jughosta/32/107160_2.png) [@jughosta](https://discuss.elastic.co/u/jughosta)\
**Post date:** [March 14, 2024, 6:16pm UTC](https://discuss.elastic.co/t/no-longer-possible-to-embed-the-discover-page/355341/4 "2024-03-14T18:16:49Z")

</div>

I would suggest to check styles of your iframe. Based on the first screenshot, it does not have enough height especially for the chart to render fully.

---

<div class="post-metadata">

**Author:** ![silentfilm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/silentfilm/32/44348_2.png) [@silentfilm](https://discuss.elastic.co/u/silentfilm)\
**Post date:** [March 14, 2024, 7:49pm UTC](https://discuss.elastic.co/t/no-longer-possible-to-embed-the-discover-page/355341/5 "2024-03-14T19:49:55Z")

</div>

But I have not changed anything in my Java or JavaScript code at all, except to upgrade the Elasticsearch and Kibana versions.

And if this was a style issue, why does the screen display correctly when I click on the Fullscreen ![fullscreen](https://us1.discourse-cdn.com/elastic/original/3X/d/8/d89a7917a04da9bb3b8c9c4a503df0d4496f5e1c.png) icon? If I click on it again the display is incorrect again.

I checked the javascript code and I only see the size of the margins being set, not the size of the window.

It seems like the top bar chart showing the number of occurrences for each minute can no longer be embedded.

---

<div class="post-metadata">

**Author:** ![silentfilm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/silentfilm/32/44348_2.png) [@silentfilm](https://discuss.elastic.co/u/silentfilm)\
**Post date:** [March 18, 2024, 2:03pm UTC](https://discuss.elastic.co/t/no-longer-possible-to-embed-the-discover-page/355341/6 "2024-03-18T14:03:05Z")

</div>

Do I need to open a bug issue on Github?

---

<div class="post-metadata">

**Author:** ![silentfilm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/silentfilm/32/44348_2.png) [@silentfilm](https://discuss.elastic.co/u/silentfilm)\
**Post date:** [March 18, 2024, 9:29pm UTC](https://discuss.elastic.co/t/no-longer-possible-to-embed-the-discover-page/355341/7 "2024-03-18T21:29:43Z")

</div>

I found more information on embedding dashboards at [How to embed Kibana dashboards | Elastic Blog](https://www.elastic.co/blog/how-to-embed-kibana-dashboards). I will try using some of those parameters, specifically the "height" parameter when I can get ES 8.12.1 loaded up again. Maybe it is required now.

---

<div class="post-metadata">

**Author:** ![silentfilm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/silentfilm/32/44348_2.png) [@silentfilm](https://discuss.elastic.co/u/silentfilm)\
**Post date:** [March 19, 2024, 9:57pm UTC](https://discuss.elastic.co/t/no-longer-possible-to-embed-the-discover-page/355341/8 "2024-03-19T21:57:49Z")

</div>

I tried setting the length of the iframe where the Discover screen appears, but the Discover screen ignored it and the display was still incorrect and way too short. It still briefly displays correctly before showing the thin window that is not usable.

I found the global setting doc\_table:legacy and set that to true, and my embedded Discover screen immediately started working. So the new Discover screen does not work when it is embedded. I can understand why this wasn't tested because the Discover screen doesn't have a Share -\> Embed menu option like the dashboards do. But we've been embedding dashboards and the Discover screen the same way for five or six years and the new Discover screen does not display when embedded.

Since the legacy version is embed-able and the new version functions correctly in that you can browse data, but can't embed and display that data, I still say that this is a bug.

And this Advanced Setting cannot be configured via my kibana.yml file. Is [this forum post from 2016](https://discuss.elastic.co/t/advanced-settings-via-config-file-possible/68862) still true? It doesn't seem to work for me, possibly because the API has been deprecated.

---

<div class="post-metadata">

**Author:** ![silentfilm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/silentfilm/32/44348_2.png) [@silentfilm](https://discuss.elastic.co/u/silentfilm)\
**Post date:** [March 20, 2024, 3:39pm UTC](https://discuss.elastic.co/t/no-longer-possible-to-embed-the-discover-page/355341/9 "2024-03-20T15:39:26Z")

</div>

The new Discover page cannot be embedded due to a bug that makes the screen too short to be usable.

If you set the Kibana Advanced Setting for " Document Explorer or classic view" to true then you can embed the "classic" Explorer page. In 8.8.2 and earlier versions, this defaulted to true, but in 8.12.x the default is false.

Add the code below to your kibana.yml file to set the default to the classic view:

```auto
uiSettings:
  overrides:
    "doc_table:legacy": true

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 17, 2024, 3:39pm UTC](https://discuss.elastic.co/t/no-longer-possible-to-embed-the-discover-page/355341/10 "2024-04-17T15:39:29Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
