parser

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCef

func ParseCef(event string) ([]byte, error)

func ParseGrok

func ParseGrok(event string, grokPatterns []string) ([]byte, error)

func ParseJson

func ParseJson(event string) ([]byte, error)

ParseJson will convert raw string received by syslog to JSON

func ParseKV

func ParseKV(event string) ([]byte, error)

ConstructKeyValue will take a key value formatted string and convert it into a key value json object

Types

type CefEvent

type CefEvent struct {
	Version            string
	DeviceVendor       string
	DeviceProduct      string
	DeviceVersion      string
	DeviceEventClassId string
	Name               string
	Severity           string
	Extensions         map[string]string
}

Jump to

Keyboard shortcuts

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