internalRequest use admin privilieges. Create wazuh monitoring index

This commit is contained in:
Pedro Sanchez 2017-04-06 11:29:37 -07:00
parent 371f566912
commit 99605c1cf8

View File

@ -4,7 +4,7 @@ module.exports = function (server, options) {
// Elastic JS Client
const serverConfig = server.config();
const elasticsearch = require('elasticsearch');
const elasticRequest = server.plugins.elasticsearch.getCluster('data');
const elasticRequest = server.plugins.elasticsearch.getCluster('admin');
// External libraries
const fs = require('fs');