2016-06-29 01:43:18 +00:00
|
|
|
module.exports = function (kibana) {
|
|
|
|
return new kibana.Plugin({
|
2016-08-01 14:50:18 +00:00
|
|
|
id: 'wazuh',
|
2016-06-29 01:43:18 +00:00
|
|
|
name: 'wazuh',
|
|
|
|
require: ['kibana', 'elasticsearch'],
|
|
|
|
uiExports: {
|
|
|
|
app: {
|
2016-08-01 14:50:18 +00:00
|
|
|
id: 'wazuh',
|
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'),
|
2016-08-26 15:45:36 +00:00
|
|
|
esShardTimeout: config.get('elasticsearch.shardTimeout'),
|
|
|
|
tilemap: config.get('tilemap')
|
2016-06-29 01:43:18 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
init: require('./init.js')
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|