syslog

package
v1.0.0-release-1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chop

func Chop(rulePath string, outputType string, filePath string) interface{}

func FindLog

func FindLog(file string) (string, error)

Types

type SyslogEvent

type SyslogEvent struct {
	Facility  string
	Severity  string
	Message   string
	Timestamp string
}

Representation of syslog event

func ParseEvents

func ParseEvents(logFile string) ([]SyslogEvent, error)

ParseEvents interprets and parses the log file and builds a slice of SyslogEvent structs

func (SyslogEvent) Keywords

func (e SyslogEvent) Keywords() ([]string, bool)

Keywords is a function required for a sigma.Event to be passed to sigma.Rulset.EvalAll

Keywords returns a list of the different keys in our SyslogEvent struct.

func (SyslogEvent) Select

func (e SyslogEvent) Select(name string) (interface{}, bool)

Select is a function required for a sigma.Event to be passed to sigma.Rulset.EvalAll

Select returns the value for a specified key

Jump to

Keyboard shortcuts

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