loglib

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//RFC3164Log Random log Source
	RFC3164Log = "<%d>%s %s %s[%d]: %s"
	//RFC5424Log Random log Source
	RFC5424Log = "<%d>%d %s %s %s %d ID%d %s %s"
	//FidelisLog Specific Log Source (CEF)
	FidelisLog = "" /* 647-byte string literal not displayed */
	//LancopeLog Specific Log Source (CEF)
	LancopeLog = "" /* 412-byte string literal not displayed */
	//TrendMicroLog Specific Log Source (CEF)
	TrendMicroLog = "" /* 486-byte string literal not displayed */
	//PaloTrafficLog Specific Log Source (CEF)
	PaloTrafficLog = "" /* 956-byte string literal not displayed */
	//PaloThreatLog Specific Log Source (CEF)
	PaloThreatLog = "" /* 953-byte string literal not displayed */
)

Variables

This section is empty.

Functions

func LogTimeFormat added in v0.0.23

func LogTimeFormat() time.Time

LogTimeFormat formats log time

func NewFidelisLog

func NewFidelisLog(t time.Time) string

NewFidelisLog Specific Log Source (CEF)

func NewLancopeLog

func NewLancopeLog(t time.Time) string

NewLancopeLog Specific Log Source (CEF) todo| map fake lancope data to the correct fields

func NewLog

func NewLog(format string, t time.Time) string

NewLog chooses new log source

func NewPaloThreatLog

func NewPaloThreatLog(t time.Time) string

NewPaloThreatLog Specific Log Source (CEF) todo| map fake palo data to the correct fields

func NewPaloTrafficLog

func NewPaloTrafficLog(t time.Time) string

NewPaloTrafficLog Specific Log Source (CEF) todo| map fake palo data to the correct fields

func NewRFC3164Log

func NewRFC3164Log(t time.Time) string

NewRFC3164Log Specific Log Source (CEF)

func NewRFC5424Log

func NewRFC5424Log(t time.Time) string

NewRFC5424Log Specific Log Source (CEF)

func NewTrendMicroLog

func NewTrendMicroLog(t time.Time) string

NewTrendMicroLog Specific Log Source (CEF) todo| map fake trendmicro data to the correct fields

func RandomPort

func RandomPort() int

RandomPort generate random strings

func RandomProtocol

func RandomProtocol() string

RandomProtocol generate random strings

func RandomRequest

func RandomRequest() string

RandomRequest generate random strings

func RandomString

func RandomString(size int) string

RandomString generate random strings

func RandomURL

func RandomURL() string

RandomURL generate random URL strings

Types

This section is empty.

Jump to

Keyboard shortcuts

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