wazuh-kibana-app/index.js

27 lines
737 B
JavaScript
Raw Normal View History

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'),
esShardTimeout: config.get('elasticsearch.shardTimeout'),
tilemap: config.get('tilemap')
2016-06-29 01:43:18 +00:00
};
}
}
},
init: require('./init.js')
});
};