From bb7e4611277feb9d640f157d95a16d19716553bf Mon Sep 17 00:00:00 2001 From: Elastic Jasper Date: Thu, 6 Oct 2016 11:33:10 -0400 Subject: [PATCH] Backport PR #8534 --------- **Commit 1:** Displaying stdout logs in UTC * Original sha: 6f7efa7262b79f840f929b18f1871a9b2507ea4b * Authored by = on 2016-10-04T17:02:13Z --- src/server/logging/log_format_string.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/logging/log_format_string.js b/src/server/logging/log_format_string.js index 189738a1b4c5..ea1c2f3b4b3d 100644 --- a/src/server/logging/log_format_string.js +++ b/src/server/logging/log_format_string.js @@ -46,7 +46,7 @@ let workerType = process.env.kbnWorkerType ? `${type(process.env.kbnWorkerType)} module.exports = class KbnLoggerJsonFormat extends LogFormat { format(data) { - let time = color('time')(moment(data.timestamp).format('HH:mm:ss.SSS')); + let time = color('time')(moment(data.timestamp).utc().format('HH:mm:ss.SSS')); let msg = data.error ? color('error')(data.error.stack) : color('message')(data.message); let tags = _(data.tags)