Logstash couchdb_changes plugin with a host different from localhost

I would like to connect to a Couchdb database that has a url with a slash i.e hosted in a different server.

ELK version 6.0.0
Here's my config file

input {
couchdb_changes{
host => ['app.mysite.org/db/' ]
username => 'admin'
password => 'strong_password_123'
#port =>5984
db =>'elk_database'
keep_id => true
keep_revision => true
initial_sequence =>1
}
}

Error Log:-

[2018-04-10T16:35:30,202][INFO ][logstash.inputs.couchdbchanges] Connecting to CouchDB _changes stream at: {:host=>"app.mysite.org/db/", :port=>"5984", :db=>"elk_database"}
[2018-04-10T16:35:30,204][ERROR][logstash.pipeline ] A plugin had an unrecoverable error. Will restart this plugin.
Pipeline_id:main
Plugin: <LogStash::Inputs::CouchDBChanges host=>"app.mysite.org/db/", db=>"elk_database", keep_id=>true, keep_revision=>true, initial_sequence=>1, id=>"4cb7e3cb11f02a7e24a0be9301282b379d0218cb78bd6970c84ccf5a45c1ee0b", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>"plain_37d06bf3-f95d-42e7-85f5-99af2d8cf03c", enable_metric=>true, charset=>"UTF-8">, port=>5984, secure=>false, password=>, heartbeat=>1000, ignore_attachments=>true, always_reconnect=>true, reconnect_delay=>10>
Error: bad component(expected host component): [app.mysite.org/db/]
Exception: URI::InvalidComponentError
Stack: /Users/developer/Downloads/ELK6/logstash-6.0.0/vendor/jruby/lib/ruby/stdlib/uri/generic.rb:595:in check_host' /Users/developer/Downloads/ELK6/logstash-6.0.0/vendor/jruby/lib/ruby/stdlib/uri/generic.rb:636:inhost='
/Users/developer/Downloads/ELK6/logstash-6.0.0/vendor/jruby/lib/ruby/stdlib/uri/generic.rb:670:in hostname=' /Users/developer/Downloads/ELK6/logstash-6.0.0/vendor/jruby/lib/ruby/stdlib/uri/generic.rb:189:ininitialize'
/Users/developer/Downloads/ELK6/logstash-6.0.0/vendor/jruby/lib/ruby/stdlib/uri/generic.rb:136:in build' /Users/developer/Downloads/ELK6/logstash-6.0.0/vendor/jruby/lib/ruby/stdlib/uri/http.rb:63:inbuild'
/Users/developer/Downloads/ELK6/logstash-6.0.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-couchdb_changes-3.1.4/lib/logstash/inputs/couchdb_changes.rb:205:in build_uri' /Users/developer/Downloads/ELK6/logstash-6.0.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-couchdb_changes-3.1.4/lib/logstash/inputs/couchdb_changes.rb:153:inrun'
/Users/developer/Downloads/ELK6/logstash-6.0.0/logstash-core/lib/logstash/pipeline.rb:574:in `inputworker'

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.