in lib/fluent/plugin/out_kinesis.rb [66:103]
def configure(conf)
log.warn("Deprecated warning: out_kinesis is no longer supported after v1.0.0. Please check out_kinesis_streams out.")
super
validate_params
if @detach_process or (@num_threads > 1)
@parallel_mode = true
if @detach_process
@use_detach_multi_process_mixin = true
end
else
@parallel_mode = false
end
if @parallel_mode
if @order_events
log.warn 'You have set "order_events" to true, however this configuration will be ignored due to "detach_process" and/or "num_threads".'
end
@order_events = false
end
if @partition_key_expr
partition_key_proc_str = sprintf(
PROC_BASE_STR, @partition_key_expr
)
@partition_key_proc = eval(partition_key_proc_str)
end
if @explicit_hash_key_expr
explicit_hash_key_proc_str = sprintf(
PROC_BASE_STR, @explicit_hash_key_expr
)
@explicit_hash_key_proc = eval(explicit_hash_key_proc_str)
end
@dump_class = @use_yajl ? Yajl : JSON
end