繁体   English   中英

logstash索引未将数据推送到ES

[英]logstash index is not pushing data to ES

哇,logstash索引器出现大问题。 以下是我的索引器配置文件。

input {
  redis {
    host => "redis.queue.do.development.sf.augnodev.com"
    # these settings should match the output of the agent
    data_type => "list"
    key => "logstash"
    codec => json
  }
}

output {
        stdout { }
        elasticsearch {
                bind_host => "logstash.does.not.work.com"
        }

}

所以..运送到ES以与kibana一起使用...数据在哪里?

看着发货人正在工作的redis日志弹出Redis。 然后索引器弹出。

1401264911.022972 [0 222.127.178.107:52248] "rpush" "logstash" "{\"message\":\"May 28 16:15:10 ubuntu shipper_test.py: {\\\"test\\\": \\\"aa\\\"}\",\"@version\":\"1\",\"@timestamp\":\"2014-05-28T08:15:10.998Z\",\"type\":\"syslog\",\"host\":\"ubuntu\",\"path\":\"/var/log/syslog\"}"
1401264911.026998 [0 107.170.218.65:42775] "blpop" "logstash" "0"

在索引器上的日志文件中看到的是以下内容,并且不会移动

 {:timestamp=>"2014-05-27T05:07:50.980000-0400", :message=>"Using milestone 2 input plugin 'redis'. This plugin should be stable, but if you see strange behavior, please let us know! For more information on plugin milestones, test", :level=>:warn}

我的意思是...。这是什么问题? bind_host是否足够?

在ES中获得的是:

http://logstash.does.not.work.com:9200/_search?q=type:syslog?pretty=true

{
  "took":3,
  "timed_out":false,
  "_shards":{
    "total":0,
    "successful":0,
    "failed":0},
    "hits": {
      "total":0,
      "max_score":0.0,
      "hits":[]
    }
}

谢谢

数据保存在您的elasticsearch中! 因此,在启动索引器之前,您必须开始elasticsearch。 您可以使用Kibana来查看您的Elasticsearch数据。 请参考Elasticsearch主页。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM