Skip to content

Commit

Permalink
Use current timestamp even with non-randomized samples (#48)
Browse files Browse the repository at this point in the history
* Use current timestamp even with non-randomized samples

Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>

* fix syntax

Signed-off-by: Máté Őry <orymate@gmail.com>

---------

Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Máté Őry <orymate@gmail.com>
Co-authored-by: Máté Őry <orymate@gmail.com>
  • Loading branch information
bazsi and orymate authored Oct 5, 2023
1 parent 2028f6a commit 4aab803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formats/syslog/syslog.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4aab803

Please sign in to comment.