Class: Fluent::TcpOutput

Inherits:
StreamOutput show all
Defined in:
lib/fluent/plugin/out_stream.rb

Overview

obsolete

Constant Summary collapse

LISTEN_PORT =
24224

Instance Method Summary collapse

Methods inherited from StreamOutput

#flush_secondary, #format_stream, #write

Constructor Details

#initializeTcpOutput

Returns a new instance of TcpOutput.



93
94
95
96
97
# File 'lib/fluent/plugin/out_stream.rb', line 93

def initialize
  super
  $log.warn "'tcp' output is obsoleted and will be removed. Use 'forward' instead."
  $log.warn "see 'forward' section in https://docs.fluentd.org/ for the high-availability configuration."
end

Instance Method Details

#configure(conf) ⇒ Object



102
103
104
# File 'lib/fluent/plugin/out_stream.rb', line 102

def configure(conf)
  super
end

#connectObject



106
107
108
# File 'lib/fluent/plugin/out_stream.rb', line 106

def connect
  TCPSocket.new(@host, @port)
end