logstash gork 失败的数据 不发送给elasticsearch 该怎么些配置
时间: 2017-03-15来源:开源中国
前景提要
HDC调试需求开发(15万预算),能者速来!>>>
input {
file {
path => "/log/api.log"
}
}
filter {
grok {
match => {"message"=> "%{TIMESTAMP_ISO8601}}
remove_field => ["message"]
}
if "_grokparsefailure" in [tags] { drop {} }

}
output {
if "_grokparsefailure" not in [tags]{
elasticsearch {
hosts => ["*.*.*.*:9200"]
index => "indexdemo"
}
stdout {codec => rubydebug}}
}
这是我的logstash的配置文件 但是es 那边还是会接收到匹配失败的数据 并显示在kibana上 求解答

科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行