mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -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]
|
||||
|
||||
@logger.debug(["Reg: ", typeconfig["pattern"], event.message, match])
|
||||
# Add negate option
|
||||
match = match and !typeconfig["negate"] || !match and typeconfig["negate"]
|
||||
|
||||
case typeconfig["what"]
|
||||
when "previous"
|
||||
if match
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue