Hi !!
First of all, sorry to revive an old thread. I have considered opportune to respond in case the same thing happens to another person.
I recently had this problem due to a storage issue. After solving the storage problem, the first thing I tried was to reinstall the Wazuh application in Kibana since, like Federico, I thought I could solve it this way.
Unfortunately it was not solved and since I had to update to 4.3.9 I updated everything and I kept getting the error message:
" Health Check. Error connecting to API: 2001 - Unexpected end of JSON input "
I finally resolved :
- Stop kibana
- Delete the file " /usr/share/kibana/data/wazuh/config/wazuh-registry.json "
- Restart Kibana
Thank you Wazuh community!