# Shortened URL added to .kibana

**URL:** <https://discuss.elastic.co/t/shortened-url-added-to-kibana/43901>\
**Category:** Kibana\
**Created:** [March 9, 2016, 2:07pm UTC](https://discuss.elastic.co/t/shortened-url-added-to-kibana/43901 "2016-03-09T14:07:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lantern77](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lantern77/32/22043_2.png) [@lantern77](https://discuss.elastic.co/u/lantern77)\
**Post date:** [March 9, 2016, 2:07pm UTC](https://discuss.elastic.co/t/shortened-url-added-to-kibana/43901/1 "2016-03-09T14:07:22Z")

</div>

This is a very specific issue however, in our kibana.yml we changed the index in kibana to "ui-kibana"

```
 #Kibana uses an index in Elasticsearch to store saved searches, visualizations
 # and dashboards. It will create a new index if it doesn't already exist.
 kibana.index: "ui-kibana"

```

However, is there a reason why shortened url's are still saved in .kibana when they are made, instead of our set ui-kibana?

Request in Sense  
\> GET .kibana/\_search  
\> {  
\> "query": {  
\> "match\_all": {}  
\> }  
\> }

Response:

> ```
> {
> "took": 3,
> "timed_out": false,
> "_shards": {
> "total": 5,
> "successful": 5,
> "failed": 0
> },
> "hits": {
> "total": 1,
> "max_score": 1,
> "hits": [
> {
> "_index": ".kibana",
> "_type": "url",
> "_id": "fca5ab8fa377aaa44bc1a3f909b1a633",
> "_score": 1,
> "_source": {
> "url": "/app/kibana#/dashboard/.kibanaTest?_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-15m,mode:quick,to:now))",
> "accessCount": 0,
> "createDate": "2016-03-09T14:01:40.392Z",
> "accessDate": "2016-03-09T14:01:40.392Z"
> }
> }
> ]
> }
> 
> ```

---

<div class="post-metadata">

**Author:** ![lantern77](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lantern77/32/22043_2.png) [@lantern77](https://discuss.elastic.co/u/lantern77)\
**Post date:** [March 9, 2016, 3:34pm UTC](https://discuss.elastic.co/t/shortened-url-added-to-kibana/43901/2 "2016-03-09T15:34:41Z")

</div>

So I have taken a look at the source code for kibana, and at the moment it is hard-coded to the .kibana index.

> ```
> exports['default'] = function (server) {
> function updateMetadata(urlId, urlDoc) {
> var client;
> return _regeneratorRuntime.async(function updateMetadata$(context$2$0) {
> while (1) switch (context$2$0.prev = context$2$0.next) {
> case 0:
> client = server.plugins.elasticsearch.client;
> context$2$0.prev = 1;
> context$2$0.next = 4;
> return _regeneratorRuntime.awrap(client.update({
> index: '.kibana',
> type: 'url',
> id: urlId,
> body: {
> doc: {
> 'accessDate': new Date(),
> 'accessCount': urlDoc._source.accessCount + 1
> }
> }
> }));
> 
> ```

short\_url\_lookup.js

I know this is a very small issue is there ever a plan though to link it to the settings in kibana.yml??

---

<div class="post-metadata">

**Author:** ![wblair](https://avatars.discourse-cdn.com/v4/letter/w/c0e974/32.png) [@wblair](https://discuss.elastic.co/u/wblair)\
**Post date:** [March 9, 2016, 4:14pm UTC](https://discuss.elastic.co/t/shortened-url-added-to-kibana/43901/3 "2016-03-09T16:14:58Z")

</div>

you can change the index: '.kibana' to the following  
index: server.config().get('kibana.index')

---

<div class="post-metadata">

**Author:** ![lantern77](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lantern77/32/22043_2.png) [@lantern77](https://discuss.elastic.co/u/lantern77)\
**Post date:** [March 9, 2016, 5:44pm UTC](https://discuss.elastic.co/t/shortened-url-added-to-kibana/43901/4 "2016-03-09T17:44:36Z")

</div>

Thanks

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [March 9, 2016, 7:09pm UTC](https://discuss.elastic.co/t/shortened-url-added-to-kibana/43901/5 "2016-03-09T19:09:15Z")

</div>

I've created a ticket for this on the Kibana repo: [https://github.com/elastic/kibana/issues/6489](https://github.com/elastic/kibana/issues/6489)

Thanks for reporting it!

---

<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:** [July 6, 2017, 1:59pm UTC](https://discuss.elastic.co/t/shortened-url-added-to-kibana/43901/6 "2017-07-06T13:59:40Z")

</div>


