Documentation
¶
Overview ¶
Package stanzareceiver implements a receiver that can be used by the Opentelemetry collector to receive logs using the stanza log agent
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() component.ReceiverFactory
NewFactory creates a factory for Stanza receiver
Types ¶
type Config ¶
type Config struct { configmodels.ReceiverSettings `mapstructure:",squash"` OffsetsFile string `mapstructure:"offsets_file"` PluginDir string `mapstructure:"plugin_dir"` Operators OperatorConfig `mapstructure:"operators"` }
Config defines configuration for the stanza receiver
type LogEmitter ¶ added in v0.12.0
type LogEmitter struct { helper.OutputOperator // contains filtered or unexported fields }
LogEmitter is a stanza operator that emits log entries to a channel
func NewLogEmitter ¶ added in v0.12.0
func NewLogEmitter(logger *zap.SugaredLogger) *LogEmitter
NewLogEmitter creates a new receiver output
func (*LogEmitter) Stop ¶ added in v0.12.0
func (e *LogEmitter) Stop() error
Stop will close the log channel
type OperatorConfig ¶ added in v0.15.0
type OperatorConfig []map[string]interface{}
func (OperatorConfig) IntoPipelineConfig ¶ added in v0.15.0
func (r OperatorConfig) IntoPipelineConfig() (pipeline.Config, error)
Click to show internal directories.
Click to hide internal directories.