Documentation ¶
Overview ¶
Package harvester harvests different inputs for new information. Currently two harvester types exist:
log
stdin
The log harvester reads a file line by line. In case the end of a file is found with an incomplete line, the line pointer stays at the beginning of the incomplete line. As soon as the line is completed, it is read and returned.
The stdin harvesters reads data from stdin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Harvester ¶
type Harvester struct { ID uuid.UUID // contains filtered or unexported fields }
func NewHarvester ¶
func (*Harvester) SendStateUpdate ¶
func (h *Harvester) SendStateUpdate()
sendStateUpdate send an empty event with the current state to update the registry close_timeout does not apply here to make sure a harvester is closed properly. In case the output is blocked the harvester will stay open to make sure no new harvester is started. As soon as the output becomes available again, the finished state is written and processing can continue.
type LogFile ¶
type LogFile struct {
// contains filtered or unexported fields
}
func NewLogFile ¶
func NewLogFile( fs source.FileSource, config harvesterConfig, ) (*LogFile, error)
Directories ¶
Path | Synopsis |
---|---|
Package reader provides interface and struct to read messages and report them to a harvester The interface used is: type Reader interface { Next() (Message, error) } Each time Next is called on a reader, a Message object is returned.
|
Package reader provides interface and struct to read messages and report them to a harvester The interface used is: type Reader interface { Next() (Message, error) } Each time Next is called on a reader, a Message object is returned. |