splunk

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SplunkFormat

type SplunkFormat struct {
	logger.ContextL

	EventChan chan []byte
	// contains filtered or unexported fields
}

func NewFormat

func NewFormat(log logger.Underlying, compression kt.Compression) (*SplunkFormat, error)

func (*SplunkFormat) From

func (f *SplunkFormat) From(raw *kt.Output) ([]map[string]interface{}, error)

func (*SplunkFormat) Rollup

func (f *SplunkFormat) Rollup(rolls []rollup.Rollup) (*kt.Output, error)

func (*SplunkFormat) To

func (f *SplunkFormat) To(msgs []*kt.JCHF, serBuf []byte) (*kt.Output, error)

type SplunkMetric

type SplunkMetric struct {
	Host       string                 `json:"host"`
	SourceType string                 `json:"sourcetype"`
	Timestamp  int64                  `json:"time"`
	Event      map[string]interface{} `json:"event"`
}

Jump to

Keyboard shortcuts

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