mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 09:55:18 +00:00
28 lines
753 B
JavaScript
28 lines
753 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 App for Kibana',
|
|
icon: 'plugins/wazuh/img/icon.png',
|
|
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')
|
|
});
|
|
};
|
|
|