lib/fluent/plugin/out_elasticsearch_dynamic.rb in fluent-plugin-elasticsearch-3.0.1 vs lib/fluent/plugin/out_elasticsearch_dynamic.rb in fluent-plugin-elasticsearch-3.0.2
- old
+ new
@@ -30,10 +30,10 @@
# end eval all configs
@current_config = nil
end
def create_meta_config_map
- {'id_key' => '_id', 'parent_key' => '_parent', 'routing_key' => '_routing'}
+ {'id_key' => '_id', 'parent_key' => '_parent', 'routing_key' => @routing_key_name}
end
def client(host = nil)
# check here to see if we already have a client connection for the given host