lumberjack

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Send passing flows to one or more lumberjack (Elastic Beats) servers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoDebugPrintf

func DoDebugPrintf(format string, v ...any)

func NewResilientClient

func NewResilientClient(serverName string, options ServerOptions, reconnectWait time.Duration) *resilientClient

func NoDebugPrintf

func NoDebugPrintf(format string, v ...any)

Types

type Lumberjack

type Lumberjack struct {
	segments.BaseSegment
	Servers             map[string]ServerOptions
	BatchSize           int
	BatchTimeout        time.Duration
	BatchDebugPrintf    func(format string, v ...any)
	QueueStatusInterval time.Duration
	ReconnectWait       time.Duration
	LumberjackOut       chan *pb.EnrichedFlow
}

func (*Lumberjack) New

func (segment *Lumberjack) New(config map[string]string) segments.Segment

func (*Lumberjack) Run

func (segment *Lumberjack) Run(wg *sync.WaitGroup)

type ServerOptions

type ServerOptions struct {
	UseTLS            bool
	VerifyCertificate bool
	CompressionLevel  int
}

Jump to

Keyboard shortcuts

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