Documentation ¶
Overview ¶
Package processors contains support for mutating event data after it's been parsed out of an event line.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldDropper ¶
type FieldDropper struct {
// contains filtered or unexported fields
}
func (*FieldDropper) Init ¶
func (f *FieldDropper) Init(options map[string]interface{}) error
type KubernetesMetadataProcessor ¶
type KubernetesMetadataProcessor struct { PodGetter k8sagent.PodWatcher UID types.UID // contains filtered or unexported fields }
func (*KubernetesMetadataProcessor) Init ¶
func (k *KubernetesMetadataProcessor) Init(options map[string]interface{}) error
type Processor ¶
Processor is the interface that processors implement. The Init() method is called to initialize the processor. Process() mutates event data in-place. Processors should return `true` if processing and sending should continue, and `false` if not. This is primarily relevant for sampling, and other processors should always return true.
func NewProcessor ¶
func NewProcessorFromConfig ¶
NewProcessorFromConfig takes a configuration map that's been unmarshalled out of YAML, and tries to instantiate a corresponding parser. The syntax for processor configuration is: processors:
- request_shape: field: request prefix: shaped
or equivalently: {"processors": [{"request_shape": {"field": "request", "prefix": "shaped"}}]} So NewProcessorFromConfig expects to get a map with one key (the name of the processor).
type RequestShaper ¶
type RequestShaper struct {
// contains filtered or unexported fields
}
func (*RequestShaper) Init ¶
func (r *RequestShaper) Init(options map[string]interface{}) error
type SampleType ¶
type SampleType string
const ( SampleTypeStatic SampleType = "static" SampleTypeDynamic SampleType = "dynamic" )
type TimeFieldExtractor ¶
type TimeFieldExtractor struct {
// contains filtered or unexported fields
}
func (*TimeFieldExtractor) Init ¶
func (t *TimeFieldExtractor) Init(options map[string]interface{}) error