wazuh-kibana-app/index.js

27 lines
785 B
JavaScript
Raw Normal View History

2016-06-29 01:43:18 +00:00
//var searchApi = require('plugins/wazuh/server/api/search');
var path = require('path');
module.exports = function (kibana) {
var mainFile = 'plugins/wazuh/app';
return new kibana.Plugin({
name: 'wazuh',
require: ['kibana', 'elasticsearch'],
uiExports: {
app: {
2016-07-22 09:03:49 +00:00
title: 'Wazuh',
description: 'Wazuh UI and Kibana integrations for OSSEC',
2016-06-29 01:43:18 +00:00
main: 'plugins/wazuh/app',
injectVars: function (server, options) {
var config = server.config();
return {
kbnIndex: config.get('kibana.index'),
esApiVersion: config.get('elasticsearch.apiVersion'),
esShardTimeout: config.get('elasticsearch.shardTimeout')
};
}
}
},
init: require('./init.js')
});
};