如何使用英特尔®oneAPI工具实现PyTorch 优化,直播火热报名中>>>
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上 求解答