参考:http://kibana.logstash.es/content/logstash/plugins/input/stdin.html

最常用法:

input {
    stdin {
        tags => ["_grokparsefailure"]
        type => "web"
    }
}

filter {
    if [type] == "web" {
        grok {
            match => ["message", %{COMBINEDAPACHELOG}]
        }
    }
}
output { if "_grokparsefailure" in [tags] { nagios_nsca { nagios_status => "1" } } else { elasticsearch { } } }

 

相关文章:

  • 2021-11-12
  • 2022-01-12
  • 2021-10-27
  • 2021-06-17
  • 2021-07-25
猜你喜欢
  • 2021-06-16
  • 2022-12-23
  • 2021-08-01
  • 2021-04-20
  • 2021-11-13
  • 2021-10-27
相关资源
相似解决方案