From 259ca4c8e5ff20b0ad1e670d464fbeb4ad9a30fb Mon Sep 17 00:00:00 2001 From: Peter Brachwitz <peter.brachwitz@elastic.co> Date: Fri, 7 Feb 2020 11:17:42 +0100 Subject: [PATCH] Rename log.logger to event.dataset as recommended in ECS --- pkg/utils/log/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/utils/log/log.go b/pkg/utils/log/log.go index 576850f7ee..35f91d6746 100644 --- a/pkg/utils/log/log.go +++ b/pkg/utils/log/log.go @@ -74,7 +74,7 @@ func setLogger(v *int) { encoderConf.MessageKey = "message" encoderConf.TimeKey = "@timestamp" encoderConf.LevelKey = "log.level" - encoderConf.NameKey = "log.logger" + encoderConf.NameKey = "event.dataset" encoderConf.StacktraceKey = "error.stack_trace" encoderConf.EncodeTime = zapcore.ISO8601TimeEncoder encoder = zapcore.NewJSONEncoder(encoderConf)