From 0ebc724bb6baf7aa25a78c70f11d54d6de6ca093 Mon Sep 17 00:00:00 2001 From: Balazs Scheidler Date: Thu, 5 Oct 2023 17:15:29 +0200 Subject: [PATCH] Use current timestamp even with non-randomized samples Signed-off-by: Balazs Scheidler --- formats/syslog/syslog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/syslog/syslog.go b/formats/syslog/syslog.go index 48c0553..5bf2086 100644 --- a/formats/syslog/syslog.go +++ b/formats/syslog/syslog.go @@ -63,7 +63,7 @@ func SampleData() TemplateData { return TemplateData{ Facility: 20, severity: 5, - dateTime: time.Date(2011, 6, 25, 20, 0, 4, 0, time.UTC), + dateTime: dateTime: time.Now().UTC(), Host: viper.GetString("message.host"), AppName: viper.GetString("message.appname"), PID: 1143,