auditd

package
v1.0.0-beta-2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chop

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

func FindLog

func FindLog() (string, error)

FindLog 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