qtypes_syslog

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	KEY_PRI   = "syslog5424_pri"
	KEY_VER   = "syslog5424_ver"
	KEY_TIME  = "syslog5424_ts"
	KEY_HOST  = "syslog5424_host"
	KEY_APP   = "syslog5424_app"
	KEY_PROC  = "syslog5424_proc"
	KEY_MSGID = "syslog5424_msgid"
	KEY_SD    = "syslog5424_sd"
	KEY_MSG   = "syslog5424_msg"
	TEMPLATE  = `` /* 268-byte string literal not displayed */
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Syslog

type Syslog struct {
	Pri                    string
	UserVer                string
	Time                   string
	Host, App, Proc, MsgID string
	Structured             string
	Message                string
	IsCee                  bool
}

func NewSyslogFromKV

func NewSyslogFromKV(kv map[string]string) (sl Syslog, err error)

func (*Syslog) EnableCEE

func (sl *Syslog) EnableCEE()

func (*Syslog) SetMessage

func (sl *Syslog) SetMessage(msg string)

func (*Syslog) ToRFC5424

func (sl *Syslog) ToRFC5424() (str string, err error)

Jump to

Keyboard shortcuts

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