Skip to content

Commit

Permalink
[functionbeat] [kinesis] use record timestamp instead of current time (
Browse files Browse the repository at this point in the history
…#33593)

* use record timestamp

* add changelog entry
  • Loading branch information
gpop63 authored and chrisberkhout committed Jun 1, 2023
1 parent 16cacf8 commit 28a0d1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,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
Original file line number Diff line number Diff line change
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

0 comments on commit 28a0d1d

Please sign in to comment.