syslog

package
v0.4.8-dev Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyslogIngester

type SyslogIngester struct {
	FilePath      string
	SshdProcessor sshd.SshdProcessor
	// contains filtered or unexported fields
}

func NewSyslogIngester

func NewSyslogIngester(
	filePath string,
	sshdProcessor sshd.SshdProcessor,
	namedPipeIngester namedpipe.NamedPipeIngester,
) SyslogIngester

func (*SyslogIngester) Ingest

func (s *SyslogIngester) Ingest(ctx context.Context) error

func (*SyslogIngester) ParseSyslogMessage

func (s *SyslogIngester) ParseSyslogMessage(entry string) sshd.SshdLogEntry

ParseSyslogMessage expects a message in the form of "<PID> <Message>".

func (*SyslogIngester) Process

func (s *SyslogIngester) Process(ctx context.Context, line string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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