# UnresolvedAddressException in Logstash+Elasticsearch

**URL:** <https://discuss.elastic.co/t/unresolvedaddressexception-in-logstash-elasticsearch/23757>\
**Category:** Elasticsearch\
**Created:** [June 9, 2015, 11:11am UTC](https://discuss.elastic.co/t/unresolvedaddressexception-in-logstash-elasticsearch/23757 "2015-06-09T11:11:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramprasad](https://avatars.discourse-cdn.com/v4/letter/r/0ea827/32.png) [@ramprasad](https://discuss.elastic.co/u/ramprasad)\
**Post date:** [June 9, 2015, 11:11am UTC](https://discuss.elastic.co/t/unresolvedaddressexception-in-logstash-elasticsearch/23757/1 "2015-06-09T11:11:58Z")

</div>

Logstash is not working in my system(Windows 7).I am using Logstash-1.4.0,kibana-3.0.0,Elasticsearch-1.3.0 version installed in my system.  
I created logstash.conf file in logstash-1.4.0(Logstash-1.4.0/logstash.conf).  
logstash.conf  
——————  
input {  
file {  
path =\> “C:/apache-tomcat-7.0.62/logs/_access_”  
}  
}  
filter {  
date {  
match =\> [“timestamp” , “dd/MMM/yyyy:HH:mm:ss Z”]  
}  
}

output {  
elasticsearch { host =\> “localhost:9205″}  
}

And I run the logstash

c:\logstash-1.4.0\bin\>logstash agent -f ../logstash.conf

Getting below Exception  
log4j, [2015-06-09T15:24:45.342] WARN: org.elasticsearch.transport.netty: [logstash-IT-BHARADWAJ-5080-4016] exception caught on transport layer [[id: 0x0ee1f960]], closing connection  
java.nio.channels.UnresolvedAddressException  
at sun.nio.ch.Net.checkAddress(Net.java:123)  
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:621)  
at org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink.connect(NioClientSocketPipelineSink.java:108)  
at org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink.eventSunk(NioClientSocketPipelineSink.java:70)  
etc……..  
How to solve this problem

---

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [October 11, 2015, 6:14pm UTC](https://discuss.elastic.co/t/unresolvedaddressexception-in-logstash-elasticsearch/23757/2 "2015-10-11T18:14:08Z")

</div>

I usually find that this is a DNS resolution issue.

try ping localhost while it should work i have run in to issues with it.

Also, double check that your elasticsearch nodes log files. I have see this manifest when elasticsearch has problems resolving DNS addresses as well.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:45pm UTC](https://discuss.elastic.co/t/unresolvedaddressexception-in-logstash-elasticsearch/23757/3 "2017-07-05T23:45:27Z")

</div>


