Skip to content
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

[functionbeat] [kinesis] use record timestamp instead of current time #33593

Merged
merged 3 commits into from Dec 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Expand Up @@ -99,6 +99,7 @@ https://github.com/elastic/beats/compare/v8.2.0\...main[Check the HEAD diff]

*Functionbeat*

- Fix Kinesis events timestamp to use timestamp of the event record instead of when the record was processed {pull}33593[33593]


*Elastic Logging Plugin*
Expand Down
Expand Up @@ -103,7 +103,7 @@ func KinesisEvent(request events.KinesisEvent) ([]beat.Event, error) {

for _, deaggRecord := range deaggRecords {
beatEvents = append(beatEvents, beat.Event{
Timestamp: time.Now(),
Timestamp: *deaggRecord.ApproximateArrivalTimestamp,
Fields: mapstr.M{
"event": mapstr.M{
"kind": "event",
Expand Down