If jdbc_password_filepath replace jdbc_password no problem.
logstash 5.3.1
Ubuntu 14.04.5 LTS
[2017-04-26T16:44:34,676][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://localhost:9200/, :path=>"/"}
[2017-04-26T16:44:34,983][WARN ][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=>#<URI::HTTP:0x6fd7e512 URL:http://localhost:9200/>}
[2017-04-26T16:44:34,990][INFO ][logstash.outputs.elasticsearch] Using mapping template from {:path=>nil}
[2017-04-26T16:44:35,088][INFO ][logstash.outputs.elasticsearch] Attempting to install template {:manage_template=>{"template"=>"logstash-*", "version"=>50001, "settings"=>{"index.refresh_interval"=>"5s"}, "mappings"=>{"_default_"=>{"_all"=>{"enabled"=>true, "norms"=>false}, "dynamic_templates"=>[{"message_field"=>{"path_match"=>"message", "match_mapping_type"=>"string", "mapping"=>{"type"=>"text", "norms"=>false}}}, {"string_fields"=>{"match"=>"*", "match_mapping_type"=>"string", "mapping"=>{"type"=>"text", "norms"=>false, "fields"=>{"keyword"=>{"type"=>"keyword"}}}}}], "properties"=>{"@timestamp"=>{"type"=>"date", "include_in_all"=>false}, "@version"=>{"type"=>"keyword", "include_in_all"=>false}, "geoip"=>{"dynamic"=>true, "properties"=>{"ip"=>{"type"=>"ip"}, "location"=>{"type"=>"geo_point"}, "latitude"=>{"type"=>"half_float"}, "longitude"=>{"type"=>"half_float"}}}}}}}}
[2017-04-26T16:44:35,133][INFO ][logstash.outputs.elasticsearch] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>[#<URI::Generic:0x69bdc36e URL://localhost:9200>]}
[2017-04-26T16:44:35,140][INFO ][logstash.pipeline ] Starting pipeline {"id"=>"main", "pipeline.workers"=>1, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>5, "pipeline.max_inflight"=>125}
[2017-04-26T16:44:36,472][ERROR][logstash.pipeline ] Error registering plugin {:plugin=>"<LogStash::Inputs::Jdbc jdbc_driver_library=>\"/usr/share/java/mysql-connector-java-5.1.28.jar\", jdbc_driver_class=>\"com.mysql.jdbc.Driver\", jdbc_connection_string=>\"jdbc:mysql://127.0.0.1:3306/test\", connection_retry_attempts=>5, jdbc_validate_connection=>false, jdbc_user=>\"root\", jdbc_password_filepath=>\"/etc/logstash/test\", schedule=>\"*/1 * * * *\", statement=>\"SELECT * FROM test_bot\", type=>\"testbot\", id=>\"fd170003f3a04ea9bd2c3dceae29d91c81f5fb79-1\", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>\"plain_e5e3c4ca-f423-48c5-b0c2-07c5cd514f64\", enable_metric=>true, charset=>\"UTF-8\">, jdbc_paging_enabled=>false, jdbc_page_size=>100000, jdbc_validation_timeout=>3600, jdbc_pool_timeout=>5, sql_log_level=>\"info\", connection_retry_attempts_wait_time=>0.5, last_run_metadata_path=>\"/.logstash_jdbc_last_run\", use_column_value=>false, tracking_column_type=>\"numeric\", clean_run=>false, record_last_run=>true, lowercase_column_names=>true>", :error=>"Java::JavaSql::SQLException: Access denied for user ''@'localhost' (using password: NO)"}