Skip to content

Commit

Permalink
[pkg/stanza] Enable debugging operators 'file_output' and 'stdout' (#…
Browse files Browse the repository at this point in the history
…13397)

These operators are useful for developing log receiver configurations.
They can be temporarily inserted into a stanza pipeline in order to
print a json representation of the log entry to stdout or a file.
  • Loading branch information
djaglowski authored Aug 17, 2022
1 parent 5fbe993 commit 40d2489
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/stanza/adapter/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ package adapter // import "github.com/open-telemetry/opentelemetry-collector-con

import (
// Register parsers and transformers for stanza-based log receivers
_ "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/operator/output/file"
_ "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/operator/output/stdout"
_ "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/operator/parser/csv"
_ "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/operator/parser/json"
_ "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/operator/parser/regex"
Expand Down
16 changes: 16 additions & 0 deletions unreleased/pkg-stanza-debugging-outputs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: enhancement

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: "`filelog`, `journald`, `syslog`, `tcplog`, `udplog`, `windowseventlog` receivers"

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: "Enable debugging operators `stdout` and `file_output`"

# One or more tracking issues related to the change
issues: [13394]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:

0 comments on commit 40d2489

Please sign in to comment.