This commit is contained in:
PB
2022-12-01 17:56:11 +01:00
parent a6b4e5592a
commit 6188022ad6
5 changed files with 272 additions and 0 deletions

14
fluentd/config.go Normal file
View File

@@ -0,0 +1,14 @@
package fluentd
import (
"strconv"
"strings"
)
func ParseAddr(addr string) (string, int) {
p := strings.Split(addr, ":")
fHost := p[0]
fPort, _ := strconv.Atoi(p[1])
return fHost, fPort
}