elasticsearch

package
v4.15.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AWSOptFn = notImportedAWSOptFn

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

Functions

func NewElasticsearch

func NewElasticsearch(conf output.Config, mgr bundle.NewManagement) (output.Streamed, error)

NewElasticsearch creates a new Elasticsearch output type.

Types

type Elasticsearch

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

Elasticsearch is a writer type that writes messages into elasticsearch.

func NewElasticsearchV2

func NewElasticsearchV2(conf output.ElasticsearchConfig, mgr bundle.NewManagement) (*Elasticsearch, error)

NewElasticsearchV2 creates a new Elasticsearch writer type.

func (*Elasticsearch) Close added in v4.6.0

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

Close shuts down the Elasticsearch writer and stops processing messages.

func (*Elasticsearch) Connect

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

Connect attempts to establish a connection to a Elasticsearch broker.

func (*Elasticsearch) Write

func (e *Elasticsearch) Write(msg message.Batch) error

Write will attempt to write a message to Elasticsearch, wait for acknowledgement, and returns an error if applicable.

func (*Elasticsearch) WriteBatch added in v4.6.0

func (e *Elasticsearch) WriteBatch(ctx context.Context, msg message.Batch) error

WriteBatch will attempt to write a message to Elasticsearch, wait for acknowledgement, and returns an error if applicable.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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