From 4aab803d87dbab6380e6d90e3a670de0699423cf Mon Sep 17 00:00:00 2001 From: Balazs Scheidler Date: Thu, 5 Oct 2023 21:59:59 +0200 Subject: [PATCH] Use current timestamp even with non-randomized samples (#48) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Use current timestamp even with non-randomized samples Signed-off-by: Balazs Scheidler * fix syntax Signed-off-by: Máté Őry --------- Signed-off-by: Balazs Scheidler Signed-off-by: Máté Őry Co-authored-by: Máté Őry --- 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..b54daab 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: time.Now(), Host: viper.GetString("message.host"), AppName: viper.GetString("message.appname"), PID: 1143,