Sha256: 3a503738308f82cb744f58fdb66536ab2fbc8fb4635a00b5821224f992d3bfed

Contents?: true

Size: 513 Bytes

Versions: 1

Compression:

Stored size: 513 Bytes

Contents

# This spec covers the question here:
# https://logstash.jira.com/browse/LOGSTASH-733

require "test_utils"

describe "LOGSTASH-733" do
  extend LogStash::RSpec
  describe  "pipe-delimited fields" do
    config <<-CONFIG
      filter {
        kv { field_split => "|" }
      }
    CONFIG

    sample "field1=test|field2=another test|field3=test3" do
      insist { subject["field1"] } == "test"
      insist { subject["field2"] } == "another test"
      insist { subject["field3"] } == "test3"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logstash-lib-1.3.2 spec/support/LOGSTASH-733.rb