beat

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

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

Go to latest
Published: Oct 6, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

Types

type Exec

type Exec struct {
	Command  string `json:"command,omitempty"`
	StdOut   string `json:"stdout"`
	StdErr   string `json:"stderr,omitempty"`
	ExitCode int    `json:"exitCode"`
}

type ExecEvent

type ExecEvent struct {
	ReadTime     time.Time
	DocumentType string
	Fields       map[string]string
	Exec         Exec
}

func (*ExecEvent) ToMapStr

func (h *ExecEvent) ToMapStr() common.MapStr

type Execbeat

type Execbeat struct {
	ExecConfig config.ConfigSettings
	// contains filtered or unexported fields
}

func (*Execbeat) Cleanup

func (execBeat *Execbeat) Cleanup(b *beat.Beat) error

func (*Execbeat) Run

func (exexBeat *Execbeat) Run(b *beat.Beat) error

func (*Execbeat) Stop

func (execBeat *Execbeat) Stop()

type Executor

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

func NewExecutor

func NewExecutor(execbeat *Execbeat, config config.ExecConfig) *Executor

func (*Executor) Run

func (e *Executor) Run()

func (*Executor) Stop

func (e *Executor) Stop()

Jump to

Keyboard shortcuts

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