If we are deploying the wazuh components in different instances then we need to copy the certificates.tar file generated in the step installing indexer into all the instances to ensure the communication between the components of wazuh are encrypted.
Wazuh Server Installation
apt-get install gnupg apt-transport-https
Installation the GPG keys and the repository (NOTE : Not needed if installing in single node)
Edit the /etc/filebeat/filebeat.yml configuration file and replace the following value:
hosts: The list of Wazuh indexer nodes to connect to. You can use either IP addresses or hostnames. By default, the host is set to localhost hosts: ["127.0.0.1:9200"]. Replace it with your Wazuh indexer address accordingly.
If you have more than one Wazuh indexer node, you can separate the addresses using commas. For example, hosts: ["10.0.0.1:9200", "10.0.0.2:9200", "10.0.0.3:9200"]
Run the following command to verify that Filebeat is successfully installed.
filebeat test output
The output should look like :
elasticsearch: https://192.168.146.157:9200...
parse url... OK
connection...
parse host... OK
dns lookup... OK
addresses: 192.168.146.157
dial up... OK
TLS...
security: server's certificate chain verification is enabled
handshake... OK
TLS version: TLSv1.3
dial up... OK
talk to server... OK
version: 7.10.2
The server is installed successfully now we will install the wazuh dashboard to complete our single node installation.