# Changing Kibana-int based on context

**URL:** <https://discuss.elastic.co/t/changing-kibana-int-based-on-context/18098>\
**Category:** Elasticsearch\
**Created:** [June 13, 2014, 2:43pm UTC](https://discuss.elastic.co/t/changing-kibana-int-based-on-context/18098 "2014-06-13T14:43:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cotcs](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@cotcs](https://discuss.elastic.co/u/cotcs)\
**Post date:** [June 13, 2014, 2:43pm UTC](https://discuss.elastic.co/t/changing-kibana-int-based-on-context/18098/1 "2014-06-13T14:43:14Z")

</div>

I am a newbie to Computer science in general and at present I am working on  
a project which involves Elasticsearch, logstash, and Kibana and we are  
using this to build up a centralized Logging system. In kibana config.js ,  
there is a parameter kibana\_index whose default value is set to  
"Kibana-int". Is there a way possible to change the value of Kibana-index  
based on the context? What I could understand from my research is that  
"kibana-int" is the index which stores all the dashboards. When I say  
context, what I mean is if I have multiple projects in an organization, the  
dropdown on kibana dashboard page should show the dashboards only under a  
particular project when I give that project's name as the context in my  
url. So people working in a project get to see only the ones in their  
project. The only way I could find is to change the kibana-index value  
based on the project say something like "kibana-projA". So it shows all the  
dashboards under this particular index. But I couldnt find a way as to how  
to do it. Could you please help me out.

Any help would be appreciated.

Thanks.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f8ff596f-7813-48b6-9fab-65d075aaebcd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f8ff596f-7813-48b6-9fab-65d075aaebcd%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 14, 2014, 12:35am UTC](https://discuss.elastic.co/t/changing-kibana-int-based-on-context/18098/2 "2014-06-14T00:35:29Z")

</div>

I don't think you can do this dynamically within kibana. The better way  
would be to run multiple instances of KB and then use a proxy to handle the  
redirects.

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 14 June 2014 00:43, mysterydark [diyabi123@gmail.com](mailto:diyabi123@gmail.com) wrote:

> I am a newbie to Computer science in general and at present I am working  
> on a project which involves Elasticsearch, logstash, and Kibana and we are  
> using this to build up a centralized Logging system. In kibana config.js ,  
> there is a parameter kibana\_index whose default value is set to  
> "Kibana-int". Is there a way possible to change the value of Kibana-index  
> based on the context? What I could understand from my research is that  
> "kibana-int" is the index which stores all the dashboards. When I say  
> context, what I mean is if I have multiple projects in an organization, the  
> dropdown on kibana dashboard page should show the dashboards only under a  
> particular project when I give that project's name as the context in my  
> url. So people working in a project get to see only the ones in their  
> project. The only way I could find is to change the kibana-index value  
> based on the project say something like "kibana-projA". So it shows all the  
> dashboards under this particular index. But I couldnt find a way as to how  
> to do it. Could you please help me out.
> 
> Any help would be appreciated.
> 
> Thanks.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/f8ff596f-7813-48b6-9fab-65d075aaebcd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f8ff596f-7813-48b6-9fab-65d075aaebcd%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/f8ff596f-7813-48b6-9fab-65d075aaebcd%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/f8ff596f-7813-48b6-9fab-65d075aaebcd%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEM624ZKf0ZHiJdnySNdjYPqgPb3qJ3Y%3D0W%2BgmCTVucmKveamw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624ZKf0ZHiJdnySNdjYPqgPb3qJ3Y%3D0W%2BgmCTVucmKveamw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![cotcs](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@cotcs](https://discuss.elastic.co/u/cotcs)\
**Post date:** [June 24, 2014, 8:29pm UTC](https://discuss.elastic.co/t/changing-kibana-int-based-on-context/18098/3 "2014-06-24T20:29:03Z")

</div>

That indeed is the reply I got from most of the sources but somehow I have  
not been asked to adopt that method. What I am trying to do now is to  
change the config.js file. I have written a function that receives query  
parameters from the url but I have to assign it to kibana-index so that it  
creates a new index by that name and does not use the default kibana-int. I  
have no idea how to access kibana-index in javascript. Its defined in a  
function Settings . This is my function below.

var proj\_type = getProjectType("prjtype");

function getProjectType(type)  
{  
var query = window.location.search.substring(1);  
var variables = query.split("&");  
for (var i = 0; i\<variables.length; i++) {  
var param = variables[i].split("=");  
if (param[0] == type) {  
return param[1];  
}  
}

}

So proj\_type now has the name of the project. Now I want to say something  
like,

if (proj\_type !=null){

kibana-index : "kibana-"+proj\_type

}

This does not work though. ☹

On Friday, June 13, 2014 10:43:14 AM UTC-4, mysterydark wrote:

> I am a newbie to Computer science in general and at present I am working  
> on a project which involves Elasticsearch, logstash, and Kibana and we are  
> using this to build up a centralized Logging system. In kibana config.js ,  
> there is a parameter kibana\_index whose default value is set to  
> "Kibana-int". Is there a way possible to change the value of Kibana-index  
> based on the context? What I could understand from my research is that  
> "kibana-int" is the index which stores all the dashboards. When I say  
> context, what I mean is if I have multiple projects in an organization, the  
> dropdown on kibana dashboard page should show the dashboards only under a  
> particular project when I give that project's name as the context in my  
> url. So people working in a project get to see only the ones in their  
> project. The only way I could find is to change the kibana-index value  
> based on the project say something like "kibana-projA". So it shows all the  
> dashboards under this particular index. But I couldnt find a way as to how  
> to do it. Could you please help me out.
> 
> Any help would be appreciated.
> 
> Thanks.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/eeb9819a-c7b2-4f6f-bd2b-e8dc338f2371%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/eeb9819a-c7b2-4f6f-bd2b-e8dc338f2371%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:20am UTC](https://discuss.elastic.co/t/changing-kibana-int-based-on-context/18098/4 "2017-07-06T01:20:04Z")

</div>


