Wazuh Login API error

188 views
Skip to first unread message

Leonardo Ventura

unread,
Dec 1, 2021, 2:42:19 PM12/1/21
to wa...@googlegroups.com
Hello!

New here on the group, hope everyone´s fine.

When we try to login to the server this error is showing:

image.png

We have increased the timeout to 25000ms, and now it´s stuck on this screen:

image.png

Can you help us?

How can we troubleshoot this? Or the reinstall the kibana plugin? The server was running fine a few days ago.

Thanks!

Leonardo Ventura

Matt Schenkman

unread,
Dec 1, 2021, 2:49:28 PM12/1/21
to Wazuh mailing list
Looks like you can't reach the API, regardless of timeout. I'd suggest checking your wazuh-manager service. If it was connecting, you might be having issues. Also, you can try to reinstall Wazuh on Kibana if you want.

cd /usr/share/kibana
sudo -u kibana /usr/share/kibana/bin/kibana-plugin install https://packages.wazuh.com/4.x/ui/kibana/wazuh_kibana-4.2.5_7.14.2-1.zip

Federico Pacher

unread,
Dec 1, 2021, 4:18:04 PM12/1/21
to Wazuh mailing list
Hi Leonardo,

In order to help you better, could you tell us which version of Wazuh you are using?
We are going to make a basic test to check the connection with the Wazuh API, we are going to execute the following request:

curl -u <user>:<password> -k -X GET "https://localhost:55000/security/user/authenticate?raw=true"

In case you are not executing this request in the same machine where the master is installed, you must change localhost for the machine IP. As for the port, 55000 is the default port, in case you have modified this setting you should change this value. 
The default username and password is wazuh. The response to this request should look something like this:
{ "data": { "token": "eyJhbGciOiJFUzUxMiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ3YXp1aCIsImF1ZCI6IldhenVoIEFQSSBSRVNUIiwibmJmIjoxNjMyMzE3NzE3LCJleHAiOjE2MzIzMTg2MTcsInN1YiI6IndhenVoIiwicnVuX2FzIjpmYWxzZSwicmJhY19yb2xlcyI6WzFdLCJyYmFjX21vZGUiOiJ3aGl0ZSJ9.ATPSQe3S5DYQmmRZYtEkHYI1krjZDkLRwrjhrmzusDx5l5foeKueZMXLm42_wlA4atylHNi7sjUPZzop7l7Z0uxiAcc7473jtt5w42PDLpUuxiYfj3YxYnbQV3CUEjgMrY67o5t05cSDLdVVExD46l3GKPRkbCd3XKw07xWBmf2Lqm7A" }, "error": 0 }
You can find more information here: 
If you have any questions about the process, don't hesitate to ask.
Regards
Reply all
Reply to author
Forward
0 new messages