Skip to content

Commit

Permalink
fix: output timestamp with fractional seconds (#9625)
Browse files Browse the repository at this point in the history
  • Loading branch information
reimda authored Aug 30, 2021
1 parent 31178e1 commit 2370d39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/outputs/graylog/graylog.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (g *Graylog) serialize(metric telegraf.Metric) ([]string, error) {

m := make(map[string]interface{})
m["version"] = "1.1"
m["timestamp"] = metric.Time().UnixNano() / 1000000000
m["timestamp"] = float64(metric.Time().UnixNano()) / 1_000_000_000
m["short_message"] = "telegraf"
m["name"] = metric.Name()

Expand Down

0 comments on commit 2370d39

Please sign in to comment.