Hello YNWA
To achieve this you must do the following (I will assume that you are using the latest version available: v4.2.1 and 7.10.2)
The file to modify is (public/plugin.ts):
Specifically the lines:
Now:
Download the wazuh-packages repository to generate a new custom app:
Add the following to the Docker/build.sh file in the download_wazuh_app_sources() method (depending on what you want to change):
To modify the title: sed -i "s/title: 'Wazuh'/title: 'YourTitle'/g" ${kibana_dir}/plugins/wazuh/public/plugin.ts
To modify the label: sed -i "s/label: 'Wazuh'/label: 'YourLabel'/g" ${kibana_dir}/plugins/wazuh/public/plugin.ts
Generate the package, this will create a custom package in the output folder in the same directory where the script has been executed.
./generate_wazuh_app.sh -b v4.2.1-7.10.2
At the end you will see a message like this, as this is created in a container, the package is transferred to your machine since a volume is used, you will see the generated package in an output folder
Now we have to stop the Kibana service
systemctl stop kibana.service
Uninstall the plugin
cd /usr/share/kibana
sudo -u kibana bin/kibana-plugin remove wazuh
Install the custom plugin (assuming you have copy/move the package to /usr/share/kibana), where wazuh_kibana-4.2.1_7.10.2.zip is the generated package
cd /usr/share/kibana
sudo -u kibana bin/kibana-plugin install file:///usr/share/kibana/wazuh_kibana-4.2.1_7.10.2.zip
Clear your browser cache (depends on your browser), now you should be able to see the changes:
The generation of the package is documented in this link:
Another way to build the package is to follow this documentation, modifying the file that I mentioned at the beginning:
Regards, Raúl.