WARN: org.elasticsearch.transport.netty:


(Constantino Matias Salvador) #1

Hi, I'm working with ElasticSearch 1.5.1. and LogsTash1.4.2

if send message as follows:
logstash -e 'input { stdin { } } output { elasticsearch { host => ["192.168.32.124"] } }'

everything works well, but when I use a file :
input {
file {
path => '/etc/httpd/logs/access_log.2016-01-07.log'
}

}

filter {
grok {
match => { "message" => "%{COMMONAPACHELOG}" }
}
}

output {
elasticsearch { host => ["192.168.32.124:9200"] }
}

I have this error:
log4j, [2016-01-07T10:29:40.455] WARN: org.elasticsearch.transport.netty: [logstash-host03.speedymovil.com.mx-59098-4010] exception caught on transport layer [[id: 0xc95d3075]], closing connection
java.nio.channels.UnresolvedAddressException
at sun.nio.ch.Net.checkAddress(Net.java:107)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:649)
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)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:574)
at org.elasticsearch.common.netty.channel.Channels.connect(Channels.java:634)
at org.elasticsearch.common.netty.channel.AbstractChannel.connect(AbstractChannel.java:207)
at org.elasticsearch.common.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:229)
at org.elasticsearch.common.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:182)
at org.elasticsearch.transport.netty.NettyTransport.connectToChannelsLight(NettyTransport.java:680)
at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:643)
at org.elasticsearch.transport.netty.NettyTransport.connectToNodeLight(NettyTransport.java:610)
at org.elasticsearch.transport.TransportService.connectToNodeLight(TransportService.java:133)
at org.elasticsearch.discovery.zen.ping.unicast.UnicastZenPing$3.run(UnicastZenPing.java:279)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

please help, I'm desperate :frowning:


(Constantino Matias Salvador) #2

I use a API :

curl -XGET http://192.168.32.124:9200/_cluster/nodes?pretty=true

I get:

{
"error" : "ElasticsearchIllegalArgumentException[No feature for name [nodes]]",
"status" : 400
}


(Ivan Brusic) #3

You should really ask the Logstash mailing list instead. From my little
exposure of Logstash, pre-2.0, it was best to set the elasticsearch output
as http instead of the binary protocol.

output {
elasticsearch {
protocol => "http"
}
}


(Constantino Matias Salvador) #4

Thank you
That was what was missing

You saved my life


(Ivan Brusic) #5

No need for your life, just name your first born after me. :wink:


(system) #6