mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 18:05:20 +00:00
27 lines
737 B
JavaScript
27 lines
737 B
JavaScript
module.exports = function (kibana) {
|
|
return new kibana.Plugin({
|
|
id: 'wazuh',
|
|
name: 'wazuh',
|
|
require: ['kibana', 'elasticsearch'],
|
|
uiExports: {
|
|
app: {
|
|
id: 'wazuh',
|
|
title: 'Wazuh',
|
|
description: 'Wazuh UI and Kibana integrations for OSSEC',
|
|
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')
|
|
};
|
|
}
|
|
}
|
|
},
|
|
init: require('./init.js')
|
|
});
|
|
};
|
|
|