Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Maximum UDP packet size
MaxUDPSize = 64 * 1024
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UDPBaseConfig ¶
type UDPBaseConfig struct { ListenAddress string `mapstructure:"listen_address,omitempty" json:"listen_address,omitempty" yaml:"listen_address,omitempty"` AddAttributes bool `mapstructure:"add_attributes,omitempty" json:"add_attributes,omitempty" yaml:"add_attributes,omitempty"` Encoding helper.EncodingConfig `mapstructure:",squash,omitempty" json:",inline,omitempty" yaml:",inline,omitempty"` Multiline helper.MultilineConfig `mapstructure:"multiline,omitempty" json:"multiline,omitempty" yaml:"multiline,omitempty"` }
UDPBaseConfig is the details configuration of a udp input operator.
type UDPInput ¶
type UDPInput struct { helper.InputOperator // contains filtered or unexported fields }
UDPInput is an operator that listens to a socket for log entries.
type UDPInputConfig ¶
type UDPInputConfig struct { helper.InputConfig `yaml:",inline"` UDPBaseConfig `yaml:",inline"` }
UDPInputConfig is the configuration of a udp input operator.
func NewUDPInputConfig ¶
func NewUDPInputConfig(operatorID string) *UDPInputConfig
NewUDPInputConfig creates a new UDP input config with default values
func (UDPInputConfig) Build ¶
func (c UDPInputConfig) Build(logger *zap.SugaredLogger) (operator.Operator, error)
Build will build a udp input operator.
Click to show internal directories.
Click to hide internal directories.