Class: LogStash::Outputs::MyFirstPlugin

Inherits:
Base
  • Object
show all
Defined in:
lib/logstash/outputs/my-first-plugin.rb

Instance Method Summary collapse

Instance Method Details

#receive(event) ⇒ Object

def register



14
15
16
17
18
19
# File 'lib/logstash/outputs/my-first-plugin.rb', line 14

def receive(event)
  puts "in receive"
  p [:param1, @param1, :param2, @param2]
  p [:event, event]
  return "Event received"
end

#registerObject



9
10
11
12
# File 'lib/logstash/outputs/my-first-plugin.rb', line 9

def register
  puts "in register"
  p [:param1, @param1, :param2, @param2]
end