auditd

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: 14 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)

FindLog takes the file from the given path or finds the location of the audit log file by parsing the auditd.conf file

Types

type AuditEvent

type AuditEvent struct {
	Type string
	Data map[string]string
}

AuditEvent represents an Audit log event

func ParseEvents

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

func (AuditEvent) Keywords

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

Keywords returns the keywords for an AuditEvent

func (AuditEvent) Select

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

Select returns the value of the given field for an AuditEvent

Jump to

Keyboard shortcuts

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