input {
    stdin {
    }
}
filter {

       grok {
            match => ["message","\s*%{TIMESTAMP_ISO8601}\s+(?<Level>(\S+)).*"]
            }

        if [Level] == "DEBUG" {
                drop {}
                }
        if [Level] == "INFO" {
                        drop {}
                }
}

output {
 stdout {
  codec=>rubydebug{}
   }
 }
~   

利用drop 丢弃过滤日志

相关文章:

  • 2021-11-26
  • 2022-12-23
  • 2021-10-23
  • 2021-07-04
  • 2022-12-23
  • 2021-09-11
  • 2021-08-21
猜你喜欢
  • 2022-12-23
  • 2021-11-27
  • 2022-01-01
  • 2021-12-29
  • 2021-07-24
  • 2022-01-19
相关资源
相似解决方案