Documentation ¶
Overview ¶
Package profiles describes the logtailer Profile interface and provides a simple registry
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Profile ¶
type Profile interface { // The unique identifier for the profile. Name() string // ProcessRecord processes a single input line from the input log file and returns // the parsed result ProcessRecord(record string) (result interface{}, err error) // HandleOutput is called for each result returned by ProcessRecord // This is where you should direct output (stdout, some http API, etc) HandleOutput(records <-chan interface{}, dryRun bool) (errors <-chan error) // Init is called just before parsing begins. This is where any setup specific // to your profile should go Init() error }
A Profile is a log consumer.
Directories ¶
Path | Synopsis |
---|---|
Package dummy implements a dummy skeleton logtailer profile for demonstration purposes.
|
Package dummy implements a dummy skeleton logtailer profile for demonstration purposes. |
Package sshd parses ssh log lines and generates JSON representing ssh events
|
Package sshd parses ssh log lines and generates JSON representing ssh events |
Click to show internal directories.
Click to hide internal directories.