filebeat

package
v0.0.0-...-0b4a972 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2019 License: MIT Imports: 11 Imported by: 1

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