Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Out ¶
type Out struct {
// contains filtered or unexported fields
}
Out writes fluentbit messages via syslog TCP (RFC 5424 and RFC 6587).
func (*Out) Write ¶
Write takes a record, timestamp, and tag, converts it into a syslog message and routes it to the connections with the matching namespace. Each sink has it's own backing network connection and queue. The queue's size is fixed to 10000 messages. It will report dropped messages via a log for every 1000 messages dropped. If no connection is established one will be established per sink upon a Write operation. Write will also write all messages to all cluster sinks provided.
type OutOption ¶
type OutOption func(*Out)
OutOption is the optional setting of write output.
func WithBufferSize ¶
WithBufferSize configures write buffer size.
func WithDialTimeout ¶
WithDialTimeout configures dial up timeout.
func WithSanitizeHost ¶ added in v0.20.0
WithSanitizeHost configures hostname sanitization to conform to DNS requirements.
func WithWriteTimeout ¶
WithWriteTimeout configures write timeout.
type Sink ¶
type Sink struct { Addr string Name string Namespace string TLS *TLS // contains filtered or unexported fields }