Skip to content

Commit

Permalink
Log the original field if the regex pattern fails to match
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceg committed Jul 10, 2019
1 parent 7cf9c3b commit 45786ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/transforms/regex_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ impl Transform for RegexParser {
}
return Some(event);
} else {
warn!(message = "Regex pattern failed to match");
warn!(
message = "Regex pattern failed to match",
field = &String::from_utf8_lossy(&value)[..],
);
}
} else {
debug!(
Expand Down

0 comments on commit 45786ad

Please sign in to comment.