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 [email protected].
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.