[英]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.