Return new Syslog instance for each plugin (#5372)
This commit is contained in:
@@ -438,7 +438,8 @@ func getNanoNow() time.Time {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
receiver := &Syslog{
|
inputs.Add("syslog", func() telegraf.Input {
|
||||||
|
return &Syslog{
|
||||||
Address: ":6514",
|
Address: ":6514",
|
||||||
now: getNanoNow,
|
now: getNanoNow,
|
||||||
ReadTimeout: &internal.Duration{
|
ReadTimeout: &internal.Duration{
|
||||||
@@ -448,6 +449,5 @@ func init() {
|
|||||||
Trailer: nontransparent.LF,
|
Trailer: nontransparent.LF,
|
||||||
Separator: "_",
|
Separator: "_",
|
||||||
}
|
}
|
||||||
|
})
|
||||||
inputs.Add("syslog", func() telegraf.Input { return receiver })
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user