rdsaudit

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditLog

type AuditLog struct {
	Timestamp      string `faker:"rds_timestamp"`
	Serverhost     string `faker:"ipv4"`
	Username       string `faker:"username"`
	Host           string `faker:"ipv4"`
	Connectionid   string `faker:"uuid_digit"`
	Queryid        string `faker:"uuid_digit"`
	Operation      string `faker:"oneof: CONNECT, QUERY, READ, WRITE, CREATE, ALTER, RENAME, DROP"`
	Database       string `faker:"domain_name"`
	Object         string `faker:"username"`
	Retcode        int64  `faker:"oneof: 0, 1"`
	ConnectionType int64  `faker:"oneof: 0, 1, 2, 3, 4, 5"`
}

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.MySQL.Options.AuditPlugin.html

func (*AuditLog) ToCSV

func (a *AuditLog) ToCSV() (string, error)

func (*AuditLog) ToMap

func (a *AuditLog) ToMap() map[string]interface{}

type RDSAudit

type RDSAudit struct {
	// contains filtered or unexported fields
}

func New

func New() *RDSAudit

func (*RDSAudit) Err

func (r *RDSAudit) Err() error

func (*RDSAudit) NewFakeLogEvent

func (r *RDSAudit) NewFakeLogEvent() (*datasource.LogEvent, error)

func (*RDSAudit) Parse

func (r *RDSAudit) Parse(ctx context.Context, in <-chan *datasource.LogEvent) <-chan *parser.Parsed

func (*RDSAudit) ParseLogEvent added in v0.2.0

func (r *RDSAudit) ParseLogEvent(e *datasource.LogEvent) ([]*parser.Parsed, error)

Jump to

Keyboard shortcuts

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