Logstash 抛错 code: 429

搭建elk日志收集,两台es服务做集群。
logstash的配置为
output
{
if [type] =="union_user" {
elasticsearch {
hosts => ["10.10.1.167:9200","10.10.1.166:9200"]
index => "union_user-%{+YYYY-MM-dd}"
}
stdout
{
codec => "json"
}
}
}
出现了无法同步日志的情况,抛出的异常日志为
{:timestamp=>"2016-04-12T18:42:17.075000+0800", :message=>"retrying failed action with response code: 429", :level=>:warn}
{:timestamp=>"2016-04-12T18:42:17.131000+0800", :message=>"retrying failed action with response code: 429", :level=>:warn}

造成这种现象的原因是什么呢,如何解决?

看起来和这个问题类似:

你试一下去掉codec => "json"这句配置看看

1 Like

好像有点效果~还在观察中,这是为什么呢

试了一下还是不行