Hello Jan:
I think is pretty clear that there is no indexation because filebeat cannot connect to the wazuh-indexer:
# filebeat test output
elasticsearch: https://172.16.1.12:9200...
parse url... OK
connection...
parse host... OK
dns lookup... OK
addresses: 172.16.1.12
dial up... ERROR dial tcp 172.16.1.12:9200: connect: connection refused
#
Please, verify the IP of wazuh-indexer, check connectivity in the port, send the config of
filebeat and ensure that the credentials are properly saved in the filebeat keystore:
# telnet 172.16.1.1 9200
# cat /etc/filebeat/filebeat.yml
# echo <admin_user> | filebeat keystore add username --stdin --force (by default, these credentials are admin:admin)
# echo <admin_passwd> | filebeat keystore add password --stdin --force
Ensure also that you have the proper keystores configured in the wazuh-manager for vulnerabilities indexation:
# echo '<admin_user> ' | /var/ossec/bin/wazuh-keystore -f indexer -k username
# echo '<admin_passwd> ' | /var/ossec/bin/wazuh-keystore -f indexer -k password
After this try again:
# filebeat test output
If this did not solve the issue, it could be also that the filebeat cert is invalid or expired:
# ls -l /etc/filebeat/certs/
# cd /etc/filebeat/certs/
# openssl x509 -noout -subject -in wazuh-server.pem
# openssl x509 -enddate -noout -in wazuh-server.pem
# openssl verify -CAfile root-ca.pem wazuh-server.pem
Important Note: the <> means that you have to replace what is inside with you proper name or user
Considering this, and checking your indexer config, the cluster name is wazuh-cluster and the log file will be:
# less /var/log/wazuh-indexer/wazuh-cluster.log | grep -iE 'WARN|ERROR'
And, please also send the filebeat log in case there is any error:
# less /var/log/filebeat/filebeat* | grep -iE 'WARN|ERROR'
I hope this helps.
Thanks