filebeat

package
v0.0.0-...-656cd05 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(b *beat.Beat, rawConfig *common.Config) (beat.Beater, error)

New creates and returns a new Collectbeat instance.

Types

type Collectbeat

type Collectbeat struct {
	// contains filtered or unexported fields
}

Collectbeat implements the Beater interface.

func (*Collectbeat) Run

func (bt *Collectbeat) Run(b *beat.Beat) error

func (*Collectbeat) Stop

func (bt *Collectbeat) Stop()

Stop signals to Collectbeat that it should stop. It closes the "done" channel and closes the publisher client associated with each Module.

Stop should only be called a single time. Calling it more than once may result in undefined behavior.

type Config

type Config struct {
	// Discoverers is a list of discoverer specific configurationd data.
	Discoverers      map[string]*common.Config `config:"discovery"`
	ConfigProspector *common.Config            `config:"config.prospectors"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL