Elasticsearch unreachable :

while loading logstash receving this error:

kindly tell how to resolve this.

This means that Elasticsearch is not configured to listen in localhost, or it's using a different port. You can begin by checking if network.host setting has _local_ configured.