syslog

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InputName = "syslog"

Functions

func Handler

func Handler() core.InputHandler

Types

type Config

type Config struct {
	Address        string `json:"address" validate:"required|ip"`
	Port           int    `json:"port" validate:"required|int|min:0|max:65535"`
	Protocol       string `json:"protocol" validate:"required|in:tcp,udp,both"`
	Format         string `json:"format" validate:"required|in:automatic,RFC3164,RFC5424,RFC6587,raw"`
	FlushFrequency int    `json:"flush_frequency" validate:"required|min:0"`
}

type NoFormat

type NoFormat struct{}

func (NoFormat) GetParser

func (f NoFormat) GetParser(line []byte) format.LogParser

func (NoFormat) GetSplitFunc

func (f NoFormat) GetSplitFunc() bufio.SplitFunc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL