Goodday,
(using logstash 1.4.2)
I'm trying to do something like:
filter {
if type == "feed" {
grok {
match => [ "message", "%{COMBINEDAPACHELOGS}" ]
add_tag => [ "grokked", "web" ]
tag_on_failure => [ "notweb" ]
}
}
if type == "feed" and "notweb" in [tags] {
grok {
patterns_dir => "/opt/logstash/patterns"
match => [ "message", "%{ERROPARSING}" ]
add_tag => [ "grokked", "%{[level]}" ] # %{level} named from ERRORPARSING
}
}
}
But all the notweb stuff ends up with a _grokparsefailure as if the next step wasn't tested/evaluated.
%{ERRORPARSING} tested correct in the grokdebugger.