Method: LogStash::Filters::Collate#flush
- Defined in:
- lib/logstash/filters/collate.rb
#flush ⇒ Object
100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
# File 'lib/logstash/filters/collate.rb', line 100 def flush events = [] if (@collatingDone) @mutex.synchronize{ while collatedEvent = @collatingArray.pop collatedEvent["tags"] << "collated" events << collatedEvent end # while @collatingArray.pop } # reset collatingDone flag. @collatingDone = false end return events end |