parrot: github.com/tserkov/parrot/pkg/syslog Index | Files

package syslog

import "github.com/tserkov/parrot/pkg/syslog"

Package syslog listens on specified ports/protocols/paths for syslog messages (RFC3164, RFC5424, or RFC6587) and emits parsed messages.

Index

Package Files

syslog.go

type Server Uses

type Server struct {
    ReceiveLog chan map[string]interface{}
    // contains filtered or unexported fields
}

Server represents a single syslog server, capable of multiple listeners.

func New Uses

func New() *Server

New creates a new Server capable of handling any valid syslog format, and creates the log emit chan (ReceiveLog).

func (*Server) ListenTCP Uses

func (s *Server) ListenTCP(addr string) error

ListenTCP configures the syslog server to listen for messages over TCP at the specified address.

func (*Server) ListenUDP Uses

func (s *Server) ListenUDP(addr string) error

ListenUDP configures the syslog server to listen for messages over UDP at the specified address.

func (*Server) ListenUnix Uses

func (s *Server) ListenUnix(path string) error

ListenUnix configures the syslog server to listen for messages on the specified unix socket path.

func (*Server) Shutdown Uses

func (s *Server) Shutdown()

func (*Server) Start Uses

func (s *Server) Start() error

Start finalizes configuration and starts listeners.

Package syslog imports 1 packages (graph) and is imported by 1 packages. Updated 2018-10-16. Refresh now. Tools for package owners.