Skip to content
This repository has been archived by the owner on Feb 22, 2021. It is now read-only.

Commit

Permalink
Dividing ecsLogsEvent's time by 1000 (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
stanvit authored and dfuentes committed Nov 1, 2017
1 parent a22afbd commit ae399b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func NewEvent(cwEvent cloudwatchlogs.FilteredLogEvent, group string) Event {
var ecsLogsEvent ecslogs.Event
if err := json.Unmarshal([]byte(*cwEvent.Message), &ecsLogsEvent); err != nil {
ecsLogsEvent = ecslogs.MakeEvent(ecslogs.INFO, *cwEvent.Message)
ecsLogsEvent.Time = time.Unix(*cwEvent.Timestamp, 0)
ecsLogsEvent.Time = ParseAWSTimestamp(cwEvent.Timestamp)
}

return Event{
Expand Down

0 comments on commit ae399b6

Please sign in to comment.