Skip to content

Commit

Permalink
Fixing incorrect use of .kibana index
Browse files Browse the repository at this point in the history
  • Loading branch information
malbarral committed Aug 14, 2017
1 parent f621c39 commit cb63a63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/wazuh-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ module.exports = function (server, options) {
//Handlers - Update API Hostname

var updateApiHostname = function (req,reply) {
elasticRequest.callWithRequest(req, 'update', { index: '.kibana', type: 'wazuh-configuration', id:req.params.id, body: {doc: {"manager": req.payload.manager}} }).then(
elasticRequest.callWithRequest(req, 'update', { index: '.wazuh', type: 'wazuh-configuration', id:req.params.id, body: {doc: {"manager": req.payload.manager}} }).then(
function () {
reply({ 'statusCode': 200, 'message': 'ok' });
}, function (error) {
Expand Down

0 comments on commit cb63a63

Please sign in to comment.