简体   繁体   English

logstash索引未将数据推送到ES

[英]logstash index is not pushing data to ES

Wowwee.,big issues with logstash indexer. 哇,logstash索引器出现大问题。 Below is my indexer config file. 以下是我的索引器配置文件。

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

}

So..shipping to ES for use with kibana......where is the the data??????? 所以..运送到ES以与kibana一起使用...数据在哪里?

Redis is being popped looking at the redis log si hte shipper is working. 看着发货人正在工作的redis日志弹出Redis。 Andthe indexer is poping. 然后索引器弹出。

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"

see in the log file on the indexer is the below and does not move 在索引器上的日志文件中看到的是以下内容,并且不会移动

 {: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}

I mean....does what is the issue with? 我的意思是...。这是什么问题? Should not bind_host suffice? bind_host是否足够?

Is is what in get in ES: 在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":[]
    }
}

Thanks 谢谢

The data is save in your elasticsearch! 数据保存在您的elasticsearch中! So, before your start your indexer you must start your elasticsearch. 因此,在启动索引器之前,您必须开始elasticsearch。 You can use Kibana to view your elasticsearch data. 您可以使用Kibana来查看您的Elasticsearch数据。 Please refer to Elasticsearch homepage. 请参考Elasticsearch主页。

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

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