amazon-web-services – Logstash,EC2和elasticsearch

我在EC2中设置了两个弹性搜索节点,并尝试使用logstash.运行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)

这是它的一小部分.
这是我使用logstash的conf文件:

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
        }
}
~

我在.91上运行Logstash(打开第二个终端窗口)我错过了什么?

最佳答案 我不得不将“elasticsearch”改为“elasticsearch_http”.

固定.

点赞