Hi,
I understand you want to do some customizations to the Wazuh plugin for Kibana or Wazuh dashboard whose source code is hosted at
https://github.com/wazuh/wazuh-kibana-app and build a package to be installed in your production platform. Currently, the mentioned repository has the source code for plugins compatible with Kibana and Wazuh dashboard. Depending on the platform you should use the compatible branch/tag to apply your customizations and build the plugin.
Building a package of the Wazuh plugin of recent versions requires a development platform (development Kibana for plugins compatible with production Kibana or development OpenSearch Dashboards for plugin compatible with Wazuh dashboard).
The development platform will allow you to build the plugin package and develop the customizations you want to apply to the Wazuh plugin.
Follow the next steps:
1. Identify the branch/tag in the repository that is compatible with the target platform and version where you want to install the customized Wazuh plugin. For example, the tag compatible with the latest version of Wazuh (4.5.2) and Kibana 7.17.12 is called v4.5.2-7.17.12 meanwhile the compatible with Wazuh dashboard 4.5.2 is v4.5.2. See more information about branching at
https://github.com/wazuh/wazuh-kibana-app/wiki/About-our-branches-and-tags.
2. Setup the development platform (Kibana or OpenSearch Dashboards depending on your use case): This documentation applies to Kibana:
https://github.com/wazuh/wazuh-kibana-app/wiki/Develop-new-features, but if you need for OpenSearch Dashboards, the steps should be similar.
For recent versions, we have a Docker environment that could facilitate to setup of the development environment with the required development Kibana or OpenSearch Dashboards (for plugin compatibles with Wazuh dashboard).
- Development Kibana: see docker/kbn-dev directory.
- Development Wazuh dashboard: docker/osd-dev directory.
My recommendation is to use these environments as possible if you have knowledge about Docker.
3. Apply the customization you want to do to the source code of the Wazuh plugin. Use the compatible branch/tag with the platform (Kibana or Wazuh dashboard), platform version and Wazuh version.
4. Build the package for the customized plugin
cd /path/to/platform_dev/plugins/wazuh
yarn build
where:
- /path/to/platform_dev: path to development platform
- wazuh: name of Wazuh plugin directory added to the development platform
The generated package can be installed in a compatible production platform.