class LogStash::Filters::Dictionary::JsonFile
Protected Instance Methods
initialize_for_file_type()
click to toggle source
# File lib/logstash/filters/dictionary/json_file.rb, line 9 def initialize_for_file_type end
read_file_into_dictionary()
click to toggle source
# File lib/logstash/filters/dictionary/json_file.rb, line 12 def read_file_into_dictionary content = IO.read(@dictionary_path, :mode => 'r:bom|utf-8') @dictionary.update(LogStash::Json.load(content)) unless content.nil? || content.empty? end