-
Notifications
You must be signed in to change notification settings - Fork 444
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
Add null and ignore_missing check to handle event.original field. #8624
Conversation
🌐 Coverage report
|
@@ -15,7 +15,7 @@ processors: | |||
field: event.original | |||
value: "{{{message}}}" | |||
ignore_empty_value: true |
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.
@ritalwar - As we have the ignore_missing
check in most places. Can we adopt the same option here as well and replace the ignore_empty_value
with ignore_missing
option?
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.
@muthu-mps In the Rename processor, we use ignore_missing
, while in the Set processor, ignore_empty_value
serves the same purpose.
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.
Just for clarity, We will have RENAME
and SET
processors for integrations. These are defined previously and will be maintained as it is and both the processor does the same function.
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 difference between SET and RENAME in this scenario is that with SET, we end up having two fields, namely message and event.original. Ideally, we should eliminate the message field after Set. However, it should apply to other such fields as well, and the removal of the message field is not being addressed as part of this PR.
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.
LGTM!
@ritalwar : In some plavces there were set processors, in some rename. Whats the general guidance you have followed here ? |
I haven't modified any processors; I've maintained the set and rename operations as they were and simply introduced these checks. |
Ok, looks good! |
Package activemq - 0.14.1 containing this change is available at https://epr.elastic.co/search?package=activemq |
Package coredns - 0.6.1 containing this change is available at https://epr.elastic.co/search?package=coredns |
Package ibmmq - 1.2.4 containing this change is available at https://epr.elastic.co/search?package=ibmmq |
Package mongodb - 1.12.1 containing this change is available at https://epr.elastic.co/search?package=mongodb |
Package salesforce - 0.12.1 containing this change is available at https://epr.elastic.co/search?package=salesforce |
Package spring_boot - 1.2.1 containing this change is available at https://epr.elastic.co/search?package=spring_boot |
Package vsphere - 1.9.2 containing this change is available at https://epr.elastic.co/search?package=vsphere |
Proposed commit message
This PR add null and ignore_missing check to handle event.original field in multiple packages which are as follows:
Checklist
changelog.yml
file.Related issues
Screenshots