lumberjack

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package lumberjack provides an output for sending events using the Lumberjack protocol, which is the protocol used for communication between Elastic Beats and Logstash when the "Logstash output" is used. This package implements a client that connects to a Logstash or compatible server, supports plain TCP and TLS, and encodes events according to the Lumberjack wire format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts *output.Options) (output.Output, error)

New returns a new lumberjack output.

Types

type Output

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

Output is a lumberjack output.

func (*Output) Close

func (o *Output) Close() error

Close closes the connection to the configured endpoint.

func (*Output) DialContext

func (o *Output) DialContext(ctx context.Context) error

DialContext connects to the configured endpoint.

func (*Output) Write

func (o *Output) Write(b []byte) (int, error)

Write writes data to the lumberjack output.

Jump to

Keyboard shortcuts

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