# Editing Kibana URL

**URL:** <https://discuss.elastic.co/t/editing-kibana-url/114680>\
**Category:** Kibana\
**Created:** [January 9, 2018, 10:23am UTC](https://discuss.elastic.co/t/editing-kibana-url/114680 "2018-01-09T10:23:19Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![nivedita\_singh](https://avatars.discourse-cdn.com/v4/letter/n/7c8e57/32.png) [@nivedita\_singh](https://discuss.elastic.co/u/nivedita_singh)\
**Post date:** [January 9, 2018, 10:23am UTC](https://discuss.elastic.co/t/editing-kibana-url/114680/1 "2018-01-09T10:23:20Z")

</div>

Hi ,

I am using ELK in my tool where whenever I will upload logs it will create new index with "apache\_elastic\_example+random" , so with the help of random function everytime I upload logs , new index is generated and with the Kibana I am visualizing my logs.

Now I want to modify Kibana url so that whenever I upload logs ,webpage gets routed to that particular index of kibana and certain filters are prepopulated . So for that I am using the following url -

[http://localhost:5601/app/kibana#/discover?\_g=(filters:!(('$state':(store:globalState),meta:(alias:SnapManagerWeb,disabled:!f,index:apache\_elastic\_example'+random+',key:logtype,negate:!f,type:phrase,value:SnapManagerWeb),query:(match:(logtype:(query:SnapManagerWeb,type:phrase)](http://localhost:5601/app/kibana#/discover?_g=(filters:!(('%24state':(store:globalState),meta:(alias:SnapManagerWeb,disabled:!f,index:apache_elastic_example'+random+',key:logtype,negate:!f,type:phrase,value:SnapManagerWeb),query:(match:(logtype:(query:SnapManagerWeb,type:phrase)))))),refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-5y,mode:quick,to:now))&\_a=(columns:!(jobid,level,logtype,pid,tempMessage,tid),filters:!(),index:apache\_elastic\_example'+random+',interval:auto,query:(match\_all:()),sort:!('@timestamp',desc))

I am not facing any error but kibana page is not getting uploaded. Can I get help on this.

Regards  
Nivedita Singh

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [January 9, 2018, 5:50pm UTC](https://discuss.elastic.co/t/editing-kibana-url/114680/2 "2018-01-09T17:50:49Z")

</div>

hi @nivedita_singh,

Are you trying to write this URL yourself?

When you create a new index, do you also create the corresponding index-pattern? Or do you have that index-pattern already done?

Are the filters predefined?

If you already have the index pattern and the filters are predefined, I would just use the sharing-link you get from Discover. Click the "share" button in Discover, and it will give you the correct URL. If you have filters applied, they will be part of that URL.

---

<div class="post-metadata">

**Author:** ![nivedita\_singh](https://avatars.discourse-cdn.com/v4/letter/n/7c8e57/32.png) [@nivedita\_singh](https://discuss.elastic.co/u/nivedita_singh)\
**Post date:** [January 10, 2018, 8:46am UTC](https://discuss.elastic.co/t/editing-kibana-url/114680/3 "2018-01-10T08:46:57Z")

</div>

Hi,

Thanks for your response.  
I have used the same procedure of generating the link from the share button. However , that gives me the url generated from / for the current index. I want the url generated to be generalized in a way that the same url could be used for next new index that will be named as  
" apache\_elastic\_example+_random_+".

Currently i am sending my logs in zip format to elastic search using logstash. Every zip file that i upload to elastic search creates a new index in the format of

apache\_elastic\_example+_random_+

so let's say the first uploaded zip file created index - apache\_elastic\_exampleljfitkzcqqtn

second uploaded .zip file will create index as - apache\_elastic\_exampleiuglkqbgnihb

And yes, we create index and index pattern with the same logic as above. so for index

apache\_elastic\_exampleljfitkzcqqtn --\> index pattern is apache\_elastic\_exampleljfitkzcqqtn

and for index

apache\_elastic\_exampleiuglkqbgnihb --\> index pattern is apache\_elastic\_exampleiuglkqbgnihb

Now in order to customize the default kibana view that i get for each index, i am generating url with preset filters and that needs generalization so that each time the index used in url should match to generated index in the format of - apache\_elastic\_example+random+.

I hope i have not made it too complicated 😄 ).

---

<div class="post-metadata">

**Author:** ![murlin99](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@murlin99](https://discuss.elastic.co/u/murlin99)\
**Post date:** [January 10, 2018, 11:18am UTC](https://discuss.elastic.co/t/editing-kibana-url/114680/4 "2018-01-10T11:18:09Z")

</div>

We did this with one of our projects for a while and ran into what seemed to be a problem with the length of the URL.

As far as we could find through a week of troubleshooting it was a browser issue. I know the stated limit on URL length is 2,083 characters but as we trimmed the url down for testing it would work.

---

<div class="post-metadata">

**Author:** ![nivedita\_singh](https://avatars.discourse-cdn.com/v4/letter/n/7c8e57/32.png) [@nivedita\_singh](https://discuss.elastic.co/u/nivedita_singh)\
**Post date:** [January 11, 2018, 5:09am UTC](https://discuss.elastic.co/t/editing-kibana-url/114680/5 "2018-01-11T05:09:55Z")

</div>

Thanks a lot for your response murli. In my case, if i use a specific index name like

ljfitkzcqqtn - the URL works.

however when we are using the random function - apache\_elastic\_example+random+ , to make sure that the url works for next created indexes, that is when it stops working.

Hopefully my URL isn't that big yet.

---

<div class="post-metadata">

**Author:** ![nivedita\_singh](https://avatars.discourse-cdn.com/v4/letter/n/7c8e57/32.png) [@nivedita\_singh](https://discuss.elastic.co/u/nivedita_singh)\
**Post date:** [January 11, 2018, 6:03am UTC](https://discuss.elastic.co/t/editing-kibana-url/114680/6 "2018-01-11T06:03:57Z")

</div>

Thanks a lot for your response murli. In my case, if i use a specific index name like

ljfitkzcqqtn - the URL works.

however when we are using the random function - apache\_elastic\_example+random+ , to make sure that the url works for next created indexes, that is when it stops working.

Hopefully my URL isn't that big yet.

---

<div class="post-metadata">

**Author:** ![murlin99](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@murlin99](https://discuss.elastic.co/u/murlin99)\
**Post date:** [January 11, 2018, 3:57pm UTC](https://discuss.elastic.co/t/editing-kibana-url/114680/7 "2018-01-11T15:57:42Z")

</div>

I understand what you are trying to do a little better now. I had made a bad assumption looking at the length of the URL.

How do you have the Kibana index pattern setup for this?

This should work. Do you get any kind of error? Does the dashboard show up at all?

---

<div class="post-metadata">

**Author:** ![nivedita\_singh](https://avatars.discourse-cdn.com/v4/letter/n/7c8e57/32.png) [@nivedita\_singh](https://discuss.elastic.co/u/nivedita_singh)\
**Post date:** [January 12, 2018, 5:23am UTC](https://discuss.elastic.co/t/editing-kibana-url/114680/8 "2018-01-12T05:23:27Z")

</div>

Hi,

I have following logstash config file:

input {  
file {  
path =\> "C:/Elk/logstash/flask-file-uploader-master/sclogs/\*\*/\*.log"  
start\_position =\> "beginning"  
sincedb\_path =\> "NUL"  
codec =\> multiline {  
pattern =\> "^%{TIMESTAMP\_ISO8601:timestamp}"  
negate =\> true  
what =\> previous  
auto\_flush\_interval =\> 5  
}

output {  
stdout{

codec =\> rubydebug }

elasticsearch {

hosts =\> ["localhost:9200"]  
index =\> "apache\_elastic\_example"  
template =\> "C:\Elk\logstash\flask-file-uploader-master\apache\_template.json"  
template\_name =\> "apache\_elastic\_example"  
template\_overwrite =\> true

}

}

So index pattern is set up with the same name as index is created in elasticsearch.

And i am not getting any error , logstash pipeline and config is working fine . But when I am launching Kibana , the webpage is not uploading without throwing error.

I am attaching the snippet of the code from where I am calling kIbana -

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

---

<div class="post-metadata">

**Author:** ![nivedita\_singh](https://avatars.discourse-cdn.com/v4/letter/n/7c8e57/32.png) [@nivedita\_singh](https://discuss.elastic.co/u/nivedita_singh)\
**Post date:** [January 15, 2018, 2:08pm UTC](https://discuss.elastic.co/t/editing-kibana-url/114680/9 "2018-01-15T14:08:08Z")

</div>

Hi Guys 1

I am still stuck here in KIbana url.

Any help or pointer will be appreciated.

---

<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:** [February 12, 2018, 2:08pm UTC](https://discuss.elastic.co/t/editing-kibana-url/114680/10 "2018-02-12T14:08:16Z")

</div>

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