Documentation
¶
Rendered for windows/amd64
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Checkpoint ¶
Checkpoint represents the state of an individual event log.
type EventLog ¶
type EventLog interface {
// Open the event log. checkpoint points to the last successfully read event
// in this event log. Read will resume from the next record. To start reading
// from the first event specify a zero-valued Checkpoint.
Open(checkpoint Checkpoint) error
// Read records from the event log.
Read() ([]Record, error)
// Close the event log. It should not be re-opened after closing.
Close() error
// Name returns the event log's name.
Name() string
}
EventLog is an interface to a Windows Event Log.
func NewEventLog ¶
func NewEventLog(config EventLogConfig) (EventLog, error)
type EventLogConfig ¶
type EventLogConfig struct {
Context ilogtail.Context
Name string
IgnoreOlder time.Duration
EventID string
Level string
Provider []string
}
EventLogConfig represents the config of EventLog.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.