logstransformprocessor

package module
v0.70.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: Apache-2.0 Imports: 14 Imported by: 5

README

Logs Transform Processor

Status
Stability development
Supported pipeline types logs
Distributions none

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

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() processor.Factory

NewFactory returns a new factory for the Logs Transform processor.

Types

type Config

type Config 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