Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for custom kibana index #38

Closed
shaunrampersad opened this issue Nov 27, 2015 · 8 comments
Closed

Allow for custom kibana index #38

shaunrampersad opened this issue Nov 27, 2015 · 8 comments

Comments

@shaunrampersad
Copy link

Hi

By default the load.sh will upload dashboards to http://localhost:9200/.kibana.

In the case of kibana installations which use custom indices, it might be worthwhile making the index a variable within the script so that the dashboard can be uploaded to multiple kibana installs.

E.G:
./load.sh http://localhost:9200 .kibana_env1
./load.sh http://localhost:9200 .kibana_env2

Its not a major issue but more a nice to have. For now I'm editing the load.sh and replacing .kibana with other names and then loading.

Thanks
shaun

@ruflin
Copy link
Contributor

ruflin commented Nov 27, 2015

@shaunrampersad Thanks for bringing it up. In case you built a configurable solution for yourself, feel free to open a PR with it.

@shaunrampersad
Copy link
Author

@ruflin I've submitted a PR. Might not be the best solution but its what I've changed on my side to get it working

@ruflin
Copy link
Contributor

ruflin commented Dec 3, 2015

@shaunrampersad Thanks. Looks like we have now two proposals for the same thing #40 We will have a look at both.

monicasarbu added a commit that referenced this issue Dec 3, 2015
@monicasarbu
Copy link
Contributor

@shaunrampersad @lmangani Thank you for submitting a PR to solve this issue. To fulfill all requests, I added support for command arguments to the load script:

  ./load.sh -url http://localhost:9200 -user admin -index .kenv1
Options:
  -h | -help
    Print the help menu.
  -l | -url
    Elasticseacrh URL. By default is http://localhost:9200.
  -u | -user
    Username to connect to Elasticsearch. By default no username is used.
  -i | -index
    Kibana index pattern where to save the dashboards, visualizations, index patterns. By default is .kibana.

@monicasarbu
Copy link
Contributor

Here is the related pull request: #42

@monicasarbu
Copy link
Contributor

Fixed by #42.

@arnelcapendit
Copy link

arnelcapendit commented Nov 11, 2016

Hello Guys,
I will seek some expert advise here. Cause currently we are working on the customization of our Kibana tool and we are trying to by pass the Kibana default index which was the 'kibana.index' and experimenting to alter it by creating another index. We want to have custom index so that all visualizations and dashboards will not go through the default one. Is that possible? We tried to modified some codes on kibana.yml and index.js files. See below.

//kibana.yml
//We tried to create another index aside from kibana.index but it's failing.
#kibana.index: ".kibana"
//Ex. #kibana.index: "test" , #kibana.index: ".kibana_test", etc

//index.js
//We tried to create another variable for kibanaIndex
var kibanaIndex = server.config().get('kibana.index');
//Ex. var kibanaIndex = 'test', var testIndex = '.kibana', etc.

We tried to test different scenario by manipulating on those two points. Are we doing it right?
If you have a documentation and process on how to properly customize the kibana index, it will very a appreciated.

Thanks in advance. :)

@ruflin
Copy link
Contributor

ruflin commented Nov 11, 2016

@arnelcapendit For questions please use https://discuss.elastic.co/c/beats

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants