Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogReader ¶
type LogReader struct { Path string Glob bool TimestampRegex *regexp.Regexp TimestampLayout string // contains filtered or unexported fields }
LogReader is a base Source helper that can Read file contents, cache, and support Glob file paths Other Sources can be built on-top of the LogSrc
func (*LogReader) Find ¶
Find searches for the passed in regexp from the log references in the LogReader
type Source ¶
type Source interface { // Find finds the string in the source using a source specific method (could be regex or HTTP path) // If no time.Time could be found an error is returned Find(search string, firstOccurrence bool) (time.Time, error) // Name is the source name identifier Name() string // ClearCache clears any cached source data ClearCache() // String is a human friendly version of the source, usually the log filepath String() string }
Source ius
Directories ¶
Path | Synopsis |
---|---|
Package awsnode is a latency timing source for the VPC CNI logs (aka aws-node DaemonSet)
|
Package awsnode is a latency timing source for the VPC CNI logs (aka aws-node DaemonSet) |
Package imds is a latency timing source for the EC2 Instance Metadata Service (IMDS)
|
Package imds is a latency timing source for the EC2 Instance Metadata Service (IMDS) |
Package messages is a latency timing source for /var/log/messages
|
Package messages is a latency timing source for /var/log/messages |
Click to show internal directories.
Click to hide internal directories.