Class: Fluent::Plugin::SflowInput

Inherits:
Input
  • Object
show all
Defined in:
lib/fluent/plugin/in_sflow.rb

Instance Method Summary collapse

Instance Method Details

#configure(conf) ⇒ Object



17
18
19
20
# File 'lib/fluent/plugin/in_sflow.rb', line 17

def configure(conf)
  super
  @parser = Fluent::Plugin::SflowParser.new
end

#startObject



22
23
24
25
26
27
# File 'lib/fluent/plugin/in_sflow.rb', line 22

def start
  super
  server_create(:in_sflow_server, @port, proto: :udp, bind: @bind, max_bytes: @max_bytes) do |data, sock|
    receive(data, sock.remote_host)
  end
end