Class: Fluent::Plugin::NetflowInput

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

Instance Method Summary collapse

Instance Method Details

#configure(conf) ⇒ Object



41
42
43
44
45
46
# File 'lib/fluent/plugin/in_netflow.rb', line 41

def configure(conf)
  super

  @parser = Fluent::Plugin::NetflowParser.new
  @parser.configure(conf)
end

#shutdownObject



55
56
57
# File 'lib/fluent/plugin/in_netflow.rb', line 55

def shutdown
  super
end

#startObject



48
49
50
51
52
53
# File 'lib/fluent/plugin/in_netflow.rb', line 48

def start
  super
  server_create(:in_netflow_server, @port, bind: @bind, proto: @protocol_type, max_bytes: @max_bytes) do |data, sock|
    receive_data(sock.remote_host, data)
  end
end