Not sending logs to logstash

In the filebeat logs are the following errors: ERR Failed to connect: dial tcp 127.0.0.1:5044: getsockopt: connection refused. It seems Logstash is not reachable. Is it on localhost?