Method: LogStash::Outputs::Mongodb#receive
- Defined in:
- lib/logstash/outputs/mongodb.rb
#receive(event) ⇒ Object
16 17 18 |
# File 'lib/logstash/outputs/mongodb.rb', line 16 def receive(event) @mongodb.collection(@collection).insert(event.to_hash) end |