# Kibana 6 URL Shortener extremely slow

**URL:** <https://discuss.elastic.co/t/kibana-6-url-shortener-extremely-slow/109962>\
**Category:** Kibana\
**Created:** [December 1, 2017, 4:48pm UTC](https://discuss.elastic.co/t/kibana-6-url-shortener-extremely-slow/109962 "2017-12-01T16:48:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jong99](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jong99](https://discuss.elastic.co/u/jong99)\
**Post date:** [December 1, 2017, 4:48pm UTC](https://discuss.elastic.co/t/kibana-6-url-shortener-extremely-slow/109962/1 "2017-12-01T16:48:21Z")

</div>

When I go to share a visualisation in Kibana 6.0.0 and I click the "Short URL" button, it always takes around 20-30s to generate the short URL. In Kibana 5 it was fast and snappy, but now takes ages.

The rest of Kibana is responsive and quick, but this one particular thing is extremely slow. I can see the HTTP call to the /shorten endpoint and I can see it waiting up to 30 seconds for a response.

I've searched and haven't found anyone else with this problem. Any idea why this might be taking so long?

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [December 1, 2017, 10:45pm UTC](https://discuss.elastic.co/t/kibana-6-url-shortener-extremely-slow/109962/2 "2017-12-01T22:45:40Z")

</div>

There's 2 options for Sharing (on a Dashboard); `Embedded iFrame` and `Link`. I just tried them both on a 6.0.0 Kibana on our Cloud platform and they both completed in less than 1 sec.

Can you take a look and see if there's any logging on either Kibana or Elasticsearch that might indicate what's happening?

You could enable the slow log on the .kibana index in your elasticsearch. [https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-slowlog.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-slowlog.html)

I'll keep thinking about it and ask other developers if they can think of any reason this could happen.

Regards,  
Lee

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [December 2, 2017, 12:35am UTC](https://discuss.elastic.co/t/kibana-6-url-shortener-extremely-slow/109962/3 "2017-12-02T00:35:57Z")

</div>

I would also recommend checking to see what the refresh interval is for the Kibana index.

`http://localhost:9200/.kibana/_settings`

Specifically `index.refresh_interval`. This should either not be defined or 1 (which is default). My guess is it could be set, possibly by an index template to something high, like 30 seconds.

---

<div class="post-metadata">

**Author:** ![jong99](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jong99](https://discuss.elastic.co/u/jong99)\
**Post date:** [December 2, 2017, 12:49am UTC](https://discuss.elastic.co/t/kibana-6-url-shortener-extremely-slow/109962/4 "2017-12-02T00:49:42Z")

</div>

I suspect that you are correct. I will try altering this after the weekend. Thank you very much for your suggestion.

---

<div class="post-metadata">

**Author:** ![jong99](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jong99](https://discuss.elastic.co/u/jong99)\
**Post date:** [December 4, 2017, 9:30am UTC](https://discuss.elastic.co/t/kibana-6-url-shortener-extremely-slow/109962/5 "2017-12-04T09:30:04Z")

</div>

You were correct - it was the refresh interval set at 30s. Set to 1s and now fast and snappy. Thank you so much for your help!

---

<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:** [January 1, 2018, 9:30am UTC](https://discuss.elastic.co/t/kibana-6-url-shortener-extremely-slow/109962/6 "2018-01-01T09:30:18Z")

</div>

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