Skip to content

Commit

Permalink
Merge pull request elastic#2834 from jimmyjones2/configurable_index
Browse files Browse the repository at this point in the history
Use kibana index from config
  • Loading branch information
simianhacker committed Feb 2, 2015
2 parents 09dff7a + 24ace5a commit a12a7c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server/lib/migrateConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var client = new elasticsearch.Client({

module.exports = function () {
var options = {
index: '.kibana',
index: config.kibana.kibana_index,
type: 'config',
body: {
size: 1000,
Expand Down
2 changes: 1 addition & 1 deletion src/server/lib/upgradeConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = function (response) {
if (body) return Promise.resolve();

return client.create({
index: '.kibana',
index: config.kibana.kibana_index,
type: 'config',
id: config.package.version,
body: body
Expand Down

0 comments on commit a12a7c7

Please sign in to comment.