Hello again Erik,
Thanks for sharing with us your findings. Looks like a possible bug regarding Elasticsearch and its indices.
In any case, are you still facing the "API version mismatch" error? According to the command's output, you're using the same compatible versions for the Wazuh API and the Wazuh app.
We can try to restore your Wazuh app to a fresh state and insert again the API credentials.
Keep in mind, the following commands will erase your current stored APIs on the Settings tab, so you'll have to add them again:
1. Stop the Kibana service:
2. Delete the .wazuh and .wazuh-version indices. Those indices contain information about your current Wazuh app installation and the stored API credentials.
curl -XDELETE localhost:9200/.wazuh
curl -XDELETE localhost:9200/.wazuh-version
3. Restart the Kibana service
4. Now open again the Kibana interface on an incognito window, and try again to add the API credentials. Let me know if you're still facing some kind of error, we'll be glad to help you.
Thanks for your patience.
Regards,
Juanjo