stringreplace

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginName = "processor_string_replace"

	MethodRegex   = "regex"
	MethodConst   = "const"
	MethodUnquote = "unquote"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessorStringReplace

type ProcessorStringReplace struct {
	SourceKey     string
	Method        string
	Match         string
	ReplaceString string
	DestKey       string
	// contains filtered or unexported fields
}

func (*ProcessorStringReplace) Description

func (*ProcessorStringReplace) Description() string

func (*ProcessorStringReplace) Init

func (p *ProcessorStringReplace) Init(context pipeline.Context) error

Init called for init some system resources, like socket, mutex...

func (*ProcessorStringReplace) ProcessLogs

func (p *ProcessorStringReplace) ProcessLogs(logArray []*protocol.Log) []*protocol.Log

Jump to

Keyboard shortcuts

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