logstransformprocessor

package module
v0.120.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 17 Imported by: 4

README

Logs Transform Processor

Status
Stability development: logs
Distributions []
Issues Open issues Closed issues
Code Owners @dehaansa

NOTE - This processor is experimental, with the intention that its functionality will be reimplemented in the transform processor in the future. For this reason, the processor is not included in the contrib distribution.

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 to apply log operators to logs coming from any receiver.

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

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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