Logstash,EC2和elasticsearch [英] Logstash, EC2 and elasticsearch

查看:237
本文介绍了Logstash,EC2和elasticsearch的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个elasticsearch节点设置在EC2和想使用logstash它。当我运行logstash我得到这个错误:

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)

这是它的一个片段。 下面是我使用与logstash conf文件:

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

我在0.91上运行Logstash(有第二个终端窗口中打开)我失去了一些东西?

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

推荐答案

我不得不改变elasticsearch到elasticsearch_http。

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

修正。

这篇关于Logstash,EC2和elasticsearch的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆