WAZUH - No API Available to Connect

1,098 views
Skip to first unread message

zaffar abbas

unread,
Sep 5, 2023, 2:43:12 PM9/5/23
to Wazuh | Mailing List
Hi Team,

Can someone please guide me for the following error I am facing (image attached wazuherror)?

I have attached wazuh.yml snapshot as well as reference for the API error.

Just for information, port set for Kibana is 443 as well.
wazuh.yml.PNG
wazuherror.PNG

Tomas Benitez Vescio

unread,
Sep 5, 2023, 3:17:14 PM9/5/23
to Wazuh | Mailing List

Hi,
Thanks for using Wazuh!

Could you share more information about your situation like what version of Wazuh are using, how did you install it and what are the steps you have taken so far? 
From what you have shared and mentioned so far it could be possible that the configuration in wazuh.yml is not correct, you have set the port of the REST API of the Wazuh Manager to be 443 but by default this port is 55000. If you have change this setting then you would also need to change the port used for Kibana otherwise one of this two process would not be able to run because the port it wants to use is already taken. You may find the documentation for Wazuh Dashboard configuration file useful.

Regards.

zaffar abbas

unread,
Sep 6, 2023, 2:11:15 AM9/6/23
to Wazuh | Mailing List
Thank you for your response Thomas. Actually the installation process was a bit difficult for me as I had to install elasticsearch and kibana via manual .deb file and downloaded filebeat directly from packages.wazuh site. I am using an all-in-one deployment structure.

I am using wazuh-manager version 4.5.1 having kibana plugin 7.17.9. 

Could you please confirm if it is necessary to have kibana port and port in wazuh.yml file different. Can I not use port 443 on both systems?

Regards,
Syed 

Tomas Benitez Vescio

unread,
Sep 6, 2023, 8:24:32 AM9/6/23
to Wazuh | Mailing List
The port indicated in the wazuh.yml configuration should be the port that is used by the Wazuh Server REST API (Wazuh architecture for reference) and not the port that is used by Kibana. And just to be clear, what i mean in my original comment is that if you are running all the Wazuh components in the same system you should not be able to run Kibana and the required Wazuh Server REST API using the same port.

zaffar abbas

unread,
Sep 6, 2023, 2:50:54 PM9/6/23
to Wazuh | Mailing List
Thank you Thomas I will check if port 55000 is enabled at my end or not. 

Moreover could you please confirm how can I solve issue pertaining with the index pattern alert?

Tomas Benitez Vescio

unread,
Sep 7, 2023, 8:31:13 AM9/7/23
to Wazuh | Mailing List
The error "No template found for the selected index pattern" is usually caused by a misconfiguration of Elasticsearch. I recommend you check the following documentations to try and fix the error: Installing Wazuh with Elastic Stack and No template found for the selected index pattern.

zaffar abbas

unread,
Sep 12, 2023, 12:06:58 PM9/12/23
to Wazuh | Mailing List
Hi Tomas.

I have managed the API connection issue but the Index Pattern issue is still there and I guess because of this I am unable to visualize events from enrolled systems on dashboard. I am using Kibana 7.17.9 with WAZUH 4.5.1. Kindly help me with this as this is getting a big issue for me.

I have attached snapshot of the error I am facing as well. The no matching indices alert gets generated on the health check page and timestamp one is generated when WAZUH dashboard is connected.

Kindly help me with this at your earliest!
I will be eternally grateful to you for your cooperation
Awaited for your response.
timestamp error.PNG
No matching indices.PNG

zaffar abbas

unread,
Sep 12, 2023, 12:43:35 PM9/12/23
to Wazuh | Mailing List
Just for the reference the issue has been sorted out! The protocol in filebeat.yml file was set to https. When I set it to http the issue got resolved
Reply all
Reply to author
Forward
0 new messages