windowsevent

package
v0.0.0-...-663520b Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Identifier

func Identifier(channelPath, query string) string

Identifier returns a string that uniquely identifies a source

Types

type Config

type Config struct {
	ChannelPath string
	Query       string
	// See LogsConfig.ShouldProcessRawMessage() comment.
	ProcessRawMessage bool
}

Config is a event log tailer configuration

type Tailer

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

Tailer collects logs from Windows Event Log using a pull subscription

func NewTailer

func NewTailer(evtapi evtapi.API, source *sources.LogSource, config *Config, outputChan chan *message.Message) *Tailer

NewTailer returns a new tailer.

func (*Tailer) Identifier

func (t *Tailer) Identifier() string

Identifier returns a string that uniquely identifies a source

func (*Tailer) Start

func (t *Tailer) Start(bookmark string)

Start starts tailing the event log.

func (*Tailer) Stop

func (t *Tailer) Stop()

Stop stops the tailer

Jump to

Keyboard shortcuts

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