Class: LogStash::Outputs::MyFirstPlugin
- Inherits:
-
Base
- Object
- Base
- LogStash::Outputs::MyFirstPlugin
- Defined in:
- lib/logstash/outputs/my-first-plugin.rb
Instance Method Summary collapse
-
#receive(event) ⇒ Object
def register.
- #register ⇒ Object
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 |
#register ⇒ Object
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 |