Sha256: 925759f5e51c7ae5e0e88a400da7126755d25149a1613413e900edf1f3373102

Contents?: true

Size: 296 Bytes

Versions: 4

Compression:

Stored size: 296 Bytes

Contents

# encoding: utf-8
require "csv"

module LogStash module Filters module Dictionary
  class CsvFile < File

    protected

    def read_file_into_dictionary
      ::CSV.open(@dictionary_path, 'r:bom|utf-8') do |csv|
        csv.each { |k,v| @dictionary[k] = v }
      end
    end
  end
end end end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
logstash-filter-translate-3.4.2 lib/logstash/filters/dictionary/csv_file.rb
logstash-filter-translate-3.4.1 lib/logstash/filters/dictionary/csv_file.rb
logstash-filter-translate-3.4.0 lib/logstash/filters/dictionary/csv_file.rb
logstash-filter-translate-3.3.1 lib/logstash/filters/dictionary/csv_file.rb