-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Rename Redis input read_timestamp to event.created #9924
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,7 +155,9 @@ func (h *Harvester) Run() error { | |
"redis": common.MapStr{ | ||
"slowlog": subEvent, | ||
}, | ||
"read_timestamp": common.Time(time.Now().UTC()), | ||
"event": common.MapStr{ | ||
"created": common.Time(time.Now().UTC()), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we don't need There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You mean just using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we used to use The encoders always call UTC() + format string: We don't care which type you use and often check for both time types. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the details. +1 on removing all the current usage. I removed common.Time and UTC conversion in the most recent commit. |
||
}, | ||
}, | ||
} | ||
|
||
|
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.
Why alias false? I think we use
read_timestamp
in a few places. That could be a 1:1 mapping that catches most cases.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.
For now it's false as there are still a few modules which use
read_timestamp
as a field. As soon as we completed the migration, we can probably make it an alias. Will add a checkbox to our migration issue.