log4j2

package
v0.0.0-...-c772d2a Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log4j2SocketEvent

type Log4j2SocketEvent struct {
	LoggerName string                   `json:"loggerName"`
	Message    string                   `json:"message"`
	Instant    Log4j2SocketEventInstant `json:"instant"`
	ContextMap map[string]interface{}   `json:"contextMap"`
}

type Log4j2SocketEventInstant

type Log4j2SocketEventInstant struct {
	Timestamp int64 `json:"epochSecond"`
}

type Log4j2SocketProcessor

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

func NewLog4j2SocketProcessor

func NewLog4j2SocketProcessor(config Log4j2SocketProcessorConfig, ledgerWriter backends.LedgerWriter) *Log4j2SocketProcessor

func (*Log4j2SocketProcessor) ParseCommand

func (m *Log4j2SocketProcessor) ParseCommand(bytes []byte) *processors.LogEvent

func (*Log4j2SocketProcessor) ProcessConnection

func (m *Log4j2SocketProcessor) ProcessConnection(conn net.Conn) error

func (*Log4j2SocketProcessor) Start

func (m *Log4j2SocketProcessor) Start()

func (*Log4j2SocketProcessor) Stop

func (m *Log4j2SocketProcessor) Stop()

type Log4j2SocketProcessorConfig

type Log4j2SocketProcessorConfig struct {
	IdleConnectionTimeout time.Duration
}

Jump to

Keyboard shortcuts

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