Update public/index.js file
line 46098
root@cm-log-manager:/opt/kibana/src# vim ./public/index.js
define('components/setup/steps/create_kibana_index',['require','components/setup/_setup_error'],function (require) {
return function CreateKibanaIndexFn(Private, es, configFile, Notifier) {
return function createKibanaIndex() {
var notify = new Notifier({ location: 'Setup: Kibana Index Creation' });
var complete = notify.lifecycle('kibana index creation');
var SetupError = Private(require('components/setup/_setup_error'));
return es.indices.create({
index: configFile.kibana_index,
body: {
settings: {
number_of_shards : 1,
number_of_replicas: 0
}
}
})
.catch(function (err) {
throw new SetupError('Unable to create Kibana index "<%= configFile.kibana_index %>"', err);
})
.then(function () {
return es.cluster.health({
waitForStatus: 'yellow',
index: configFile.kibana_index
})
.catch(function (err) {
throw new SetupError('Waiting for Kibana index "<%= configFile.kibana_index %>" to come online failed', err);
});
})
.then(complete, complete.failure);
};
};
});
```