Connection error between filebeat and kibana

Hi to all,

I'm a newby into the Elastic Stack. I'm installing a wazuh-manager server and I need to monitor our firewalls via syslog. I have configured Wazuh manager, and I receive syslog messages from our firewall.

I've installed filebeat but when I execute the command sudo filebeat setup, i've receiving this:

xxx@xxx:~$ sudo filebeat setup
ILM policy and write alias loading not enabled.

Index setup finished.
Loading dashboards (Kibana must be running and reachable)
Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET request to fails: fail to execute the HTTP GET request: Get "": dial tcp connect: connection refused. Response: .

If I try to get the kibana API status from the local host, I receive this:

xxx@xxx:~$ curl
curl: (7) Failed to connect to port 5601: Connection refused

How can I check if the kibana API is working fine?? Because, it seems the API port is not listening for new connections... Must I do anything in the kibana.yml file??

I'm lost with this issue........ Anyone can help me??

Thanks in advance!!