Documentation
¶
Overview ¶
Package ztail provides facilities for watching a directory of logs, tailing all the files created within it and transforming the data into zng data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tailer ¶
type Tailer struct {
// contains filtered or unexported fields
}
Tailer is a zbuf.Reader that watches a specified directory and starts tailing existing and newly created files in the directory for new logs. Newly written log data are transformed into *zng.Records and returned on a first-come-first serve basis.
func (*Tailer) Stop ¶
Stop instructs the directory watcher and indiviual file watchers to stop watching for changes. Read will emit EOS when the remaining unread data in files has been read.
func (*Tailer) WarningHandler ¶
Click to show internal directories.
Click to hide internal directories.