class Fluent::SupershipDssApplogFilter

Public Instance Methods

configure(conf) click to toggle source
Calls superclass method
# File lib/fluent/plugin/filter_supership-dss-applog.rb, line 12
def configure(conf)
  super
end
filter(tag, time, record) click to toggle source
# File lib/fluent/plugin/filter_supership-dss-applog.rb, line 16
def filter(tag, time, record)
  "#{@prefix_name}.#{@service_name}.#{@log_type}\t#{timestamp(time, record)}\t#{record.to_json}\n"
end
timestamp(time, record) click to toggle source
# File lib/fluent/plugin/filter_supership-dss-applog.rb, line 20
def timestamp(time, record)
  @timestamp_key.nil? ? time : record[@timestamp_key]
end