elasticsearch

package
v4.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ESOFieldAWSEnabled = "enabled"
)

Variables

View Source
var AWSOptFn = notImportedAWSOptFn

AWSOptFn is populated with the child `aws` package when imported.

Functions

func AWSField

func AWSField() *service.ConfigField

AWSField represents the aws block within an elasticsearch field. This is exported in order to make unit testing easier within the aws subpackage.

func OutputSpec

func OutputSpec() *service.ConfigSpec

OutputSpec returns the config spec for an elasticsearch output writer.

Types

type Output

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

Output implements service.BatchOutput for elasticsearch.

func OutputFromParsed

func OutputFromParsed(pConf *service.ParsedConfig, mgr *service.Resources) (*Output, error)

OutputFromParsed returns an elasticsearch output writer from a parsed config.

func (*Output) Close

func (e *Output) Close(context.Context) error

func (*Output) Connect

func (e *Output) Connect(ctx context.Context) error

func (*Output) WriteBatch

func (e *Output) WriteBatch(ctx context.Context, msg service.MessageBatch) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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