Return new Syslog instance for each plugin (#5372)
This commit is contained in:
parent
6b144db504
commit
00734c56c4
|
@ -438,16 +438,16 @@ func getNanoNow() time.Time {
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
receiver := &Syslog{
|
inputs.Add("syslog", func() telegraf.Input {
|
||||||
Address: ":6514",
|
return &Syslog{
|
||||||
now: getNanoNow,
|
Address: ":6514",
|
||||||
ReadTimeout: &internal.Duration{
|
now: getNanoNow,
|
||||||
Duration: defaultReadTimeout,
|
ReadTimeout: &internal.Duration{
|
||||||
},
|
Duration: defaultReadTimeout,
|
||||||
Framing: OctetCounting,
|
},
|
||||||
Trailer: nontransparent.LF,
|
Framing: OctetCounting,
|
||||||
Separator: "_",
|
Trailer: nontransparent.LF,
|
||||||
}
|
Separator: "_",
|
||||||
|
}
|
||||||
inputs.Add("syslog", func() telegraf.Input { return receiver })
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue