Hello Juan,
Good to hear from you again and sorry for the late response.
1.
Should I run this method first on my current wazuh server? And will there be any impact when I try to do it? Yes you will have to initiate the process on your current Wazuh server by first editing the config.yml file which should include the information of your additional nodes and regenerating the certificate. Use the summary below as guide to do this:
- Edit the config.yml file on your current server and add the IP address and node information of the additional nodes you want to add.
- Generate the certificates for the multi-node cluster. You can check the link on how to download the config.yml file and certificate generation tool if you don't have them on the server.
- Next you will need to edit the /etc/wazuh-indexer/opensearch.yml file and include the ip address and node name of the additional wazuh indexer nodes as specified in your config.yml file and also configure the plugins.security.nodes_dn section by uncommenting and adding if applicable. You can use the link as guide for the configuration.
- After performing the above steps and compressing the certificate files, you will then need to rename the existing certificates in the directory /etc/wazuh-indexer/certs/ to .old, go back to the directory where you have your compressed certificate file and deploy the newly generated certificates using the steps outlined in the link and then restart the wazuh indexer service with command: systemctl restart wazuh-indexer
- Copy the compressed certificate to all the additional nodes (both Wazuh indexer and Wazuh manager) and perform the steps of installing wazuh indexer, configuring and certificate deployment on them using the link as guide.
- Next you will need to edit the /etc/filebeat/filebeat.yml on your existing node and include the ip address of your additional nodes as described in the link.
- After editing the file, rename the certificates in the directory /etc/filebeat/certs/ to .old, go back to the directory where you have your compressed certificate file and deploy the new certificate using the link as guide. Restart the filebeat service: systemctl restart filebeat and run filebeat test: filebeat test output
- Install the Wazuh manager server on your additional nodes, configure and deploy the newly generated on them using the link as guide.
- Edit the wazuh dashboard file /etc/wazuh-dashboard/opensearch_dashboards.yml and include the ip address of your wazuh indexer additional nodes using the format as described in the link.
- After editing the file, rename the certificates that are present in the /etc/wazuh-dashboard/certs/ directory to .old, go back to the directory where you have the compressed certificate file and deploy the new certificates using the link as guide. Restart the dashboard service: systemctl restart wazuh-dashboard.
There could be little impact/downtime as a result of the certificate deployment and restarting of the services.
2.
What I understand, means I have to create 2 more servers to serve as a multi-node cluster? Yes you can create 2 more servers for Wazuh manager and 2 more for Wazuh indexer.
3.
Does the hardware specification of the 2 servers have to be exactly the same as the master node (wazuh my current server)? You can leave the additional nodes to be same specification as the master. You can also check the link below for the requirement specification details:
4.
Are the 2 servers in the same condition as the master node, which must have a wazuh server, wazuh indexer, wazuh dashboard and etc or is it just the wazuh indexer? If I can get this question correctly, you're asking if the additional nodes must have other components installed (wazuh server, indexer and dashboard) just like the existing architecture? If that is your question, No, you only need to install the individual component only example like installing only wazuh indexer on one of the additional node, etc.
I hope this was helpful and provided clarity. Do not hesitate to get back to us for further clarification or any other query.
Best regards.