Hi again Juan, sorry for the late response.
According to the error message you're having, it looks like the Wazuh App cannot communicate correctly with the Wazuh API.
1. First, we need to know if you're using a single-host architecture or a distributed one. Wazuh needs to use some TCP/UDP ports and they need to be allowed if you're using a firewall system. The Wazuh App uses the 55000 port, Elasticsearch the 9200 port, and Kibana de 5601 port (all of them by default). Even on a single-host architecture is important to open the necessary ports.
2. Then, please execute the following command to see the status of Elasticsearch and Kibana and see if there's some kind of log or error messages:
systemctl status elasticsearch -l
systemctl status kibana -l
3. Please make ping and curl to the exact IP of the Wazuh API:
ping <wazuh_api_ip>:55000
curl -u <api_user>:<api_password> -XGET <api_ip>:55000?pretty
4. Now we're gonna delete all the Kibana and Wazuh App configuration files. Keep in mind this operation will delete all your custom Dashboards and Kibana visualizations, and also will delete the Wazuh App configuration.
1. First, stop Kibana and Logstash:
systemctl stop kibana
systemctl stop logstash
2. Delete the Kibana and Wazuh App files:
curl -XDELETE localhost:9200/.kibana
curl -XDELETE localhost:9200/.wazuh
curl -XDELETE localhost:9200/.wazuh-version
3. Delete the Kibana optimization files. Don't worry about this, they will be re-generated when you restart Kibana:
rm -rf /usr/share/kibana/optimize/bundles
4. Restart Logstash and Kibana (Kibana will take longer to restart due to the regeneration of the optimizing bundles):
systemctl restart logstash
systemctl restart kibana
5. Now open an incognito window of your Internet browser (to avoid possible issues related to cookies or cache memory) and open again the Kibana interface. On the API credentials form, make sure to put the exact IP of the machine where you have installed the Wazuh API, and press the "Save button". Everything should be working correctly now.
Please let me know if you still have some kind of problems or doubts about anything.
Best regards,
Juanjo