module Fluent class Simple2hash < Filter def filter(tag, time, record) if record.is_a?(Numeric) or record.is_a?(Array) or record.is_a?(String) return {"value" => record} else return record end end end end