plain

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

Plain Parser Plugin

The plain parser plugin saves passed data as string in configured field. This parser always produce one event.

Configuration

[[inputs]]
  [inputs.http]
  [inputs.http.parser]
    type = "plain"

    # field path to saved content
    field = "event"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plain

type Plain struct {
	*core.BaseParser `mapstructure:"-"`
	Field            string `mapstructure:"field"`
	// contains filtered or unexported fields
}

func (*Plain) Close

func (p *Plain) Close() error

func (*Plain) Init

func (p *Plain) Init() error

func (*Plain) Parse

func (p *Plain) Parse(data []byte, routingKey string) ([]*core.Event, error)

Jump to

Keyboard shortcuts

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