Skip to content

Refactor stanzareceiver to allow splitting into separate receivers #2265

@tigrannajaryan

Description

@tigrannajaryan

We would like to separate the "source" of the log from the "operators" (it is currently one list in stanzareceiver). The goal is to be able to do this in the config:

filelog:
 include: [ receiver/stanzareceiver/testdata/simple.log ]
 start_at: beginning
 operators:
   - type: regex_parser
       regex: '^(?P<time>\d{4}-\d{2}-\d{2}) (?P<sev>[A-Z]*) (?P<msg>.*)$'
       timestamp:
         parse_from: time
         layout: '%Y-%m-%d'
       severity:
         parse_from: sev
winlog:
 channels: [Application, System]
 # other winlog options.
 operators:
   # similar to filelog.
journald:
 # optional settings.
 directory:
 files:
 operators:
   # similar to filelog.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions