-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OPA-1889] Fix some of the remaining grok discrepancies #906
Conversation
{ | ||
let tz = tz.as_str(); | ||
let tz: Tz = tz.parse().map_err(|error| { | ||
let original_value = String::from_utf8_lossy(value.as_bytes().ok_or_else(|| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only real changes here is adjust_strp_format_and_value()
function below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM though I noticed CI failures. I appreciate the additional unit tests
Fixes some of the found grok discrepancies/bugs, comparing to Datadog grok parser:
date
matcher - assume the current date, year when the time format does not include them.keyvalue
filter - treat extracted fields as paths:db.operation
means{ "db": { "operation": "insert" }}
Value:Null
values from the parsed object