Documentation
¶
Index ¶
- Variables
- func ChannelAvailable(c string) (bool, error)
- func ServiceFilename(name string) (string, error)
- type BookmarkHandler
- type CfgType
- func (c *CfgType) BookmarkPath() string
- func (c *CfgType) EnableCache() bool
- func (c *CfgType) IgnoreTimestamps() bool
- func (c *CfgType) LocalFileCachePath() string
- func (c *CfgType) LogLevel() string
- func (c *CfgType) Secret() string
- func (c *CfgType) Streams() ([]EventStreamParams, error)
- func (c *CfgType) Tags() ([]string, error)
- func (c *CfgType) Targets() ([]string, error)
- func (c *CfgType) Timeout() time.Duration
- func (c *CfgType) VerifyRemote() bool
- type EventStreamConfig
- type EventStreamHandle
- type EventStreamParams
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidName = errors.New("Event channel name is invalid") ErrInvalidReachbackDuration = errors.New("Invalid event reachback duration") ErrInvalidLevel = errors.New("Invalid level") ErrInvalidEventIds = errors.New("Invalid Event IDs, must be of the form 100 or -100 or 100-200") )
View Source
var (
ErrMalformedBookmarkFile = errors.New("Malformed bookmark file")
)
Functions ¶
func ChannelAvailable ¶
func ServiceFilename ¶
Types ¶
type BookmarkHandler ¶
type BookmarkHandler struct {
// contains filtered or unexported fields
}
func NewBookmark ¶
func NewBookmark(path string) (*BookmarkHandler, error)
func (*BookmarkHandler) Close ¶
func (b *BookmarkHandler) Close() error
func (*BookmarkHandler) Open ¶
func (b *BookmarkHandler) Open() bool
func (*BookmarkHandler) Sync ¶
func (b *BookmarkHandler) Sync() error
type CfgType ¶
type CfgType struct { Global struct { Ingest_Secret string Connection_Timeout string Verify_Remote_Certificates bool Cleartext_Backend_Target []string Encrypted_Backend_Target []string Bookmark_Location string Ignore_Timestamps bool Ingest_Cache_Path string Log_Level string } EventChannel map[string]*EventStreamConfig }
func (*CfgType) BookmarkPath ¶
func (*CfgType) EnableCache ¶
func (*CfgType) IgnoreTimestamps ¶
func (*CfgType) LocalFileCachePath ¶
func (*CfgType) Streams ¶
func (c *CfgType) Streams() ([]EventStreamParams, error)
func (*CfgType) VerifyRemote ¶
type EventStreamConfig ¶
type EventStreamConfig struct { Tag_Name string //which tag are we applying to this event channel Channel string //Names like: System, Application, Security... Max_Reachback string //duration like: 72 hours, or 6 weeks, etc.. Level []string //levels include: verbose,information,warning,error,critical Provider []string //list of providers to filter on EventID []string //list of eventID filters: 1000-2000 or -1000 }
func (*EventStreamConfig) Validate ¶
func (ec *EventStreamConfig) Validate() error
type EventStreamHandle ¶
type EventStreamHandle struct {
// contains filtered or unexported fields
}
func NewStream ¶
func NewStream(param EventStreamParams, last uint64) (*EventStreamHandle, error)
func (*EventStreamHandle) Close ¶
func (e *EventStreamHandle) Close() error
func (*EventStreamHandle) Last ¶
func (e *EventStreamHandle) Last() uint64
func (*EventStreamHandle) Name ¶
func (e *EventStreamHandle) Name() string
func (*EventStreamHandle) Read ¶
func (e *EventStreamHandle) Read() ([]([]byte), error)
func (*EventStreamHandle) SetLast ¶
func (e *EventStreamHandle) SetLast(v uint64)
Directories
¶
Path | Synopsis |
---|---|
Package wineventlog provides access to the Windows Event Log API used in all versions of Windows since Vista (i.e.
|
Package wineventlog provides access to the Windows Event Log API used in all versions of Windows since Vista (i.e. |
Click to show internal directories.
Click to hide internal directories.