Skip to content

Commit

Permalink
added timestamp for docker engine
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanrahic committed May 6, 2020
1 parent cb2e913 commit dbdb557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/input/docker/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ InputDockerSocket.prototype.logLine = function (messageText, data, next) {
time: data.time,
enrichEvent: {
// make sure each docker log gets timestamp from docker engine
'@timestamp': new Date(data.time)
'@timestamp_docker_engine': new Date(data.time)
}
}
var dockerInspect = dockerInspectCache[data.id]
Expand Down

0 comments on commit dbdb557

Please sign in to comment.