UnresolvedAddressException in Logstash+elasticsearch

1.3k views Asked by At

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).

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-512441] 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

1

There are 1 answers

0
akhambir On

You cant connect to the socket, by default elasticsearch sitting on 9200 port for http and 9300 for tcp. Try change it for 9200 first, its default case.