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:
parent
4b9e645713
commit
85ccd65543
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ func main() {
|
||||||
go hub.Run()
|
go hub.Run()
|
||||||
|
|
||||||
server := syslog.NewServer()
|
server := syslog.NewServer()
|
||||||
server.SetFormat(syslog.RFC5424)
|
server.SetFormat(syslog.Automatic)
|
||||||
server.SetHandler(handler)
|
server.SetHandler(handler)
|
||||||
if *syslogSocketPath != "" {
|
if *syslogSocketPath != "" {
|
||||||
if err = server.ListenUnixgram(*syslogSocketPath); err != nil {
|
if err = server.ListenUnixgram(*syslogSocketPath); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue