Sha256: f584478880c9522d713bbfe9951a3435a11f954a9b3502c7b236f81f89e6b8a9

Contents?: true

Size: 286 Bytes

Versions: 14

Compression:

Stored size: 286 Bytes

Contents

def decode_events
  multiline =  LogStash::Codecs::Multiline.new(options)

  events = []
  random_number_of_events.times do |n|
    multiline.decode(sample_event) { |event| events << event }
  end

  # Grab the in-memory-event
  multiline.flush { |event| events << event }
  events
end

Version data entries

14 entries across 11 versions & 2 rubygems

Version Path
logstash-codec-multiline-2.0.4 spec/supports/helpers.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/logstash-codec-multiline-2.0.2/spec/supports/helpers.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/logstash-codec-multiline-2.0.3/spec/supports/helpers.rb
logstash-codec-multiline-2.0.3 spec/supports/helpers.rb
logstash-input-beats-0.9.2 vendor/jruby/1.9/gems/logstash-codec-multiline-1.0.0/spec/supports/helpers.rb
logstash-input-beats-0.9.2 vendor/jruby/1.9/gems/logstash-codec-multiline-2.0.2/spec/supports/helpers.rb
logstash-input-beats-0.9.1 vendor/jruby/1.9/gems/logstash-codec-multiline-1.0.0/spec/supports/helpers.rb
logstash-input-beats-0.9.1 vendor/jruby/1.9/gems/logstash-codec-multiline-2.0.2/spec/supports/helpers.rb
logstash-codec-multiline-2.0.2 spec/supports/helpers.rb
logstash-codec-multiline-2.0.1 spec/supports/helpers.rb
logstash-codec-multiline-2.0.0 spec/supports/helpers.rb
logstash-codec-multiline-1.0.0 spec/supports/helpers.rb
logstash-codec-multiline-0.1.9 spec/supports/helpers.rb
logstash-codec-multiline-0.1.8 spec/supports/helpers.rb