elasticsearch

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 18 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.

func OutputSpecV2 added in v1.11.0

func OutputSpecV2() *service.ConfigSpec

Types

type EsOutput added in v1.11.0

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

func EsoOutputConstructor added in v1.11.0

func EsoOutputConstructor(pConf *service.ParsedConfig, mgr *service.Resources) (*EsOutput, error)

func (*EsOutput) Close added in v1.11.0

func (eso *EsOutput) Close(context.Context) error

func (*EsOutput) Connect added in v1.11.0

func (eso *EsOutput) Connect(ctx context.Context) error

func (*EsOutput) WriteBatch added in v1.11.0

func (eso *EsOutput) WriteBatch(ctx context.Context, batch service.MessageBatch) error

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