mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Fix negate changes to match what was actually working on the test box. Also improve logging to include negate status
This commit is contained in:
parent
b1701cb37d
commit
7c67be2ba8
1 changed files with 2 additions and 2 deletions
|
@ -96,9 +96,9 @@ class LogStash::Filters::Multiline < LogStash::Filters::Base
|
|||
key = [event.source, event.type]
|
||||
pending = @pending[key]
|
||||
|
||||
@logger.debug(["Reg: ", typeconfig["pattern"], event.message, match])
|
||||
@logger.debug(["Reg: ", typeconfig["pattern"], event.message, match, typeconfig["negate"]])
|
||||
# Add negate option
|
||||
match = match and !typeconfig["negate"] || !match and typeconfig["negate"]
|
||||
match = (match and !typeconfig["negate"]) || (!match and typeconfig["negate"])
|
||||
|
||||
case typeconfig["what"]
|
||||
when "previous"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue