You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 22, 2021. It is now read-only.
It looks like if log events are in JSON format, cwlogs expects the JSON to be structured in this format:
type Event struct {
Level Level `json:"level"`
Time time.Time `json:"time"`
Info EventInfo `json:"info"`
Data EventData `json:"data"`
Message string `json:"message"`
}
Our project outputs logs with a timeMillis epoch value and it took a while to get to the bottom of why the time was displaying incorrectly.
Does documentation exist somewhere on this event format? Also, I think that the timestamp should be populated for the event based on the AWS event timestamp if the json timestamp isn't found.
The text was updated successfully, but these errors were encountered:
It looks like if log events are in JSON format, cwlogs expects the JSON to be structured in this format:
https://github.com/segmentio/ecs-logs-go/blob/46096d8f38d354840bbc51bf2d425416a907dd6b/event.go#L63
Our project outputs logs with a
timeMillis
epoch value and it took a while to get to the bottom of why the time was displaying incorrectly.Does documentation exist somewhere on this event format? Also, I think that the timestamp should be populated for the event based on the AWS event timestamp if the json timestamp isn't found.
The text was updated successfully, but these errors were encountered: