Hi Martin,
Check that the API configuration is OK in
/usr/share/kibana/data/wazuh/config/wazuh.yml.
The configuration may not be wrong because as you said, Wazuh stopped working and no changes had been done before, but if we find the
unkwnown_user string in the API logs, it means that the login failed. Could you please have a look at the authentication log (request to
GET /security/user/authenticate)? If it failed, the
wazuh-wui password may have been changed or the user could have been deleted (or the password/username in
wazuh.yml are not the correct ones).
You can also check the API is working by login by yourself and making an API request:
TOKEN=$(curl -u wazuh-wui:wazuh-wui -k -X GET "https://localhost:55000/security/user/authenticate?raw=true")
curl -k -X GET "https://localhost:55000/" -H "Authorization: Bearer $TOKEN"
If everything is correct and the error persists, could you see if there are any errors in
/usr/share/kibana/data/wazuh/logs/wazuhapp.log?
Other users having this same issue had problems related to shards. Have a look at the
/var/log/elasticsearch/wazuh-cluster.log log to see if it is your case too.