receives data from multiple formats

however, data structure is variable; this makes templates unnecessary
complex. It would be better to convert everything to rfc5424 (at some
point)
This commit is contained in:
boyska 2019-01-11 19:36:59 +01:00
parent 4b9e645713
commit 85ccd65543

View file

@ -43,7 +43,7 @@ func main() {
go hub.Run()
server := syslog.NewServer()
server.SetFormat(syslog.RFC5424)
server.SetFormat(syslog.Automatic)
server.SetHandler(handler)
if *syslogSocketPath != "" {
if err = server.ListenUnixgram(*syslogSocketPath); err != nil {