logstransformprocessor

package module
v0.54.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 16 Imported by: 5

README

Logs Transform Processor

Status: experimental NOTE - This processor is experimental, with the intention that its functionality will be reimplemented in the transform processor in the future.

Supported pipeline types: logs

The logs transform processor can be used to apply log operators to logs coming from any receiver. Please refer to config.go for the config spec.

Examples:

processors:
  logstransform:
    operators:
      - type: regex_parser
        regex: '^(?P<time>\d{4}-\d{2}-\d{2}) (?P<sev>[A-Z]*) (?P<msg>.*)$'
        timestamp:
          parse_from: body.time
          layout: '%Y-%m-%d'
        severity:
          parse_from: body.sev

Refer to config.yaml for detailed examples on using the processor.

Documentation

Overview

Package logstransformprocessor implements a processor for specifying resource labels to be added to OpenCensus trace data and metrics data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() component.ProcessorFactory

NewFactory returns a new factory for the Logs Transform processor.

Types

type Config

type Config struct {
	config.ProcessorSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct
	adapter.BaseConfig       `mapstructure:",squash"`
}

Config defines configuration for Resource processor.

func (*Config) Validate

func (cfg *Config) Validate() error

Validate checks if the processor configuration is valid

Jump to

Keyboard shortcuts

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