Documentation ¶
Overview ¶
Package messages is a latency timing source for /var/log/messages
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Name = "Messages" DefaultPath = "/var/log/messages*" TimestampFormat = regexp.MustCompile(`[A-Z][a-z]+[ ]+[0-9][0-9]? [0-9]{2}:[0-9]{2}:[0-9]{2}`) TimestampLayout = "Jan 2 15:04:05 2006" )
Functions ¶
This section is empty.
Types ¶
type Source ¶ added in v0.1.1
type Source struct {
// contains filtered or unexported fields
}
Source is the /var/log/messages log source
func (Source) ClearCache ¶ added in v0.1.1
func (s Source) ClearCache()
ClearCache will clear the log reader cache
func (Source) Find ¶ added in v0.1.1
Find will use the Event's FindFunc and CommentFunc to search the log source and return the results based on the Event's matcher
func (Source) FindByRegex ¶ added in v0.1.7
FindByRegex is a helper func that returns a FindFunc to search for a regex in a log source that can be used in an Event
Click to show internal directories.
Click to hide internal directories.