Changing Kibana-int based on context

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/f8ff596f-7813-48b6-9fab-65d075aaebcd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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
web: www.campaignmonitor.com

On 14 June 2014 00:43, mysterydark 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.
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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEM624ZKf0ZHiJdnySNdjYPqgPb3qJ3Y%3D0W%2BgmCTVucmKveamw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

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. :frowning:

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/eeb9819a-c7b2-4f6f-bd2b-e8dc338f2371%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.