Logstash

why my logstash don't send log to elastic?

I have made a logstash's ip and elasticsearch's ip at /etc/hosts in logstash's server

and i made a "output-elasticsearch.conf" at /etc/logstash/conf.d in logstash's server

what should i do next?