Gabriel
Gabriel

Reputation: 575

Logstash, EC2 and elasticsearch

I have two elasticsearch nodes setup in EC2 and am trying to use logstash with it. I get this error when I run logstash:

log4j, [2014-02-24T10:45:32.722]  WARN: org.elasticsearch.discovery.zen.ping.unicast: [Ishihara, Shirow] failed to send ping to [[#zen_unicast_1#][inet[/10.110.65.91:9300]]]
org.elasticsearch.transport.RemoteTransportException: Failed to deserialize exception response from stream
Caused by: org.elasticsearch.transport.TransportSerializationException: Failed to deserialize exception response from stream
    at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:169)
    at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:123)
    at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)

That's a snippet of it. Here is the conf file I am using with logstash:

input {
  redis {
    host => "10.110.65.91"
    # these settings should match the output of the agent
    data_type => "list"
    key => "logstash"

    # We use the 'json' codec here because we expect to read
    # json events from redis.
    codec => json
  }
}

output {
  stdout { debug => true debug_format => "json"}

  elasticsearch {
  host => "10.110.65.91"
  cluster => searchbuild
        }
}
~

I'm running Logstash on .91 (have a second terminal window open) Am I missing something?

Upvotes: 4

Views: 2364

Answers (1)

Gabriel
Gabriel

Reputation: 575

I had to change "elasticsearch" to "elasticsearch_http".

Fixed.

Upvotes: 2

Related Questions