Logstash is running but we are getting error in the logs

Can you use xpack right? Install Xpack in Logstash and ES?
Check firewall between logstash and ES
I saw from log, Logstash is trying connect to ES via port 9244 TCP

[http://username:xxxxxx@localhost:9244/][Manticore::SocketTimeout] Read timed out”