Hi Ofek Tech,
Thank you for using Wazuh.
In order to make your Wazuh single node into a Wazuh multi-node cluster, you simply may add any worker you want by installing a Wazuh server and configuring it as a worker.
To install the Wazuh server please follow
these steps
Once you have installed the worker node you should configure it as a worker. In the configuration file located in /var/ossec/etc/ossec.conf you should have a configuration like this:
<cluster>
<name>wazuh</name>
<node_name>worker-node</node_name>
<node_type>worker</node_type>
<key></key>
<port>1516</port>
<bind_addr>0.0.0.0</bind_addr>
<nodes>
<node>wazuh-master-address</node>
</nodes>
<hidden>no</hidden>
<disabled>no</disabled>
</cluster>
The node_type tag says that this node is a Worker node, In the Key tag, you should add the same key that the master have. The node tag should have the IP address of the master node.
Here you have the full documentation to configure the cluster node.
To make your Elasticsearch single node into a multi-node cluster please follow
this documentation.
Once you have installed the Elasticsearch as a cluster you have to configure your Filebeat to work with the cluster, To do this edit the file /etc/filebeat/filebeat.yml as follows:
output.elasticsearch:
hosts: ["<elasticsearch_ip_node_1>:9200", "<elasticsearch_ip_node_2>:9200", "<elasticsearch_ip_node_3>:9200"]
Replace
elasticsearch_ip_node_x with the IP address or the hostname of the Elasticsearch server to connect to.
Here you have the official documentation to configure Filebeat.
Then restart Filebeat:
# systemctl restart filebeat
Please do not forget to add the certificates to the Elasticsearch new node
I hope this information helps you
Regards