class Fluent::Plugin::ParseCookieOutput

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_parse_cookie.rb, line 15
def initialize
  super
  require 'cgi'
end

Public Instance Methods

configure(conf) click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_parse_cookie.rb, line 23
def configure(conf)
  super
end
multi_workers_ready?() click to toggle source
# File lib/fluent/plugin/out_parse_cookie.rb, line 35
def multi_workers_ready?
  true
end
process(tag, es) click to toggle source
# File lib/fluent/plugin/out_parse_cookie.rb, line 39
def process(tag, es)
  es.each do |time, record|
    t = tag.dup
    new_record = parse_cookie(record, tag)

    t = @tag_prefix + t unless @tag_prefix.nil?

    router.emit(t, time, new_record)
  end
rescue StandardError => e
  log.warn("out_parse_cookie: error_class:#{e.class} error_message:#{e.message} tag:#{tag} es:#{es} bactrace:#{e.backtrace.first}")
end
shutdown() click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_parse_cookie.rb, line 31
def shutdown
  super
end
start() click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_parse_cookie.rb, line 27
def start
  super
end