mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
Enable 'negate' modifier for multiline filter so that you can do more complex multi-line event matching
This commit is contained in:
parent
c09d5e2021
commit
b1701cb37d
1 changed files with 3 additions and 0 deletions
|
@ -97,6 +97,9 @@ class LogStash::Filters::Multiline < LogStash::Filters::Base
|
||||||
pending = @pending[key]
|
pending = @pending[key]
|
||||||
|
|
||||||
@logger.debug(["Reg: ", typeconfig["pattern"], event.message, match])
|
@logger.debug(["Reg: ", typeconfig["pattern"], event.message, match])
|
||||||
|
# Add negate option
|
||||||
|
match = match and !typeconfig["negate"] || !match and typeconfig["negate"]
|
||||||
|
|
||||||
case typeconfig["what"]
|
case typeconfig["what"]
|
||||||
when "previous"
|
when "previous"
|
||||||
if match
|
if match
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue