class LogStash::Filters::Environment
Set fields from environment variables
Public Instance Methods
filter(event)
click to toggle source
# File lib/logstash/filters/environment.rb, line 20 def filter(event) return unless filter?(event) @add_field_from_env.each do |field, env| event[field] = ENV[env] end filter_matched(event) end
register()
click to toggle source
# File lib/logstash/filters/environment.rb, line 15 def register # Nothing end