syslog5424

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package syslog5424 provides an specialized rfc5424 log driver for forwarding server logs to syslog endpoints.

Index

Constants

View Source
const (
	DriverName       = "syslog5424"
	AddressKey       = DriverName + "-address"
	FacilityKey      = DriverName + "-facility"
	TimeFormatKey    = DriverName + "-time-format"
	TLSCACertKey     = DriverName + "-tls-ca-cert"
	TLSCertKey       = DriverName + "-tls-cert"
	TLSKeyKey        = DriverName + "-tls-key"
	TLSSkipVerifyKey = DriverName + "-tls-skip-verify"
	HostnameKey      = DriverName + "-hostname"
	MSGIDKey         = DriverName + "-msgid"
	DisableFramerKey = DriverName + "-disable-framer"
	EnvKey           = "env"
	EnvRegexKey      = "env-regex"
	LabelsKey        = "labels"
	LabelsRegexKey   = "labels-regex"
	TagKey           = "tag"
)

Driver name & available keys

View Source
const (
	RFC3339TimeFormat      = "rfc3339"
	RFC3399MicroTimeFormat = "rfc3339micro"
)

Available default time formats

Variables

This section is empty.

Functions

func New

func New(info logger.Info) (logger.Logger, error)

New creates a syslog logger using the configuration passed in on the context.

func ValidateLogOpt

func ValidateLogOpt(cfg map[string]string) error

ValidateLogOpt looks for syslog specific log options

Types

This section is empty.

Jump to

Keyboard shortcuts

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