diff --git a/agent/api/task/task.go b/agent/api/task/task.go index 1426bf96562..1baf2f276d8 100644 --- a/agent/api/task/task.go +++ b/agent/api/task/task.go @@ -3006,9 +3006,9 @@ func (task *Task) RecordExecutionStoppedAt(container *apicontainer.Container) { return } logger.Info("Essential container stopped; recording task stopped time", logger.Fields{ - field.TaskID: task.GetID(), - field.Container: container.Name, - field.Time: now.String(), + field.TaskID: task.GetID(), + field.Container: container.Name, + field.ExecutionStoppedAt: now.String(), }) } diff --git a/ecs-agent/logger/field/constants.go b/ecs-agent/logger/field/constants.go index 2b6388d024f..7efc25a7ac0 100644 --- a/ecs-agent/logger/field/constants.go +++ b/ecs-agent/logger/field/constants.go @@ -34,7 +34,6 @@ const ( Event = "event" Image = "image" Volume = "volume" - Time = "time" NetworkMode = "networkMode" Cluster = "cluster" ServiceName = "ServiceName" @@ -72,4 +71,5 @@ const ( CommandString = "commandString" CommandOutput = "commandOutput" RegistryID = "registryID" + ExecutionStoppedAt = "executionStoppedAt" )