# Logstash couchdb\_changes plugin with a host different from localhost

**URL:** <https://discuss.elastic.co/t/logstash-couchdb-changes-plugin-with-a-host-different-from-localhost/127498>\
**Category:** Logstash\
**Created:** [April 10, 2018, 1:58pm UTC](https://discuss.elastic.co/t/logstash-couchdb-changes-plugin-with-a-host-different-from-localhost/127498 "2018-04-10T13:58:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nyakundigeorge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nyakundigeorge/32/29933_2.png) [@nyakundigeorge](https://discuss.elastic.co/u/nyakundigeorge)\
**Post date:** [April 10, 2018, 1:58pm UTC](https://discuss.elastic.co/t/logstash-couchdb-changes-plugin-with-a-host-different-from-localhost/127498/1 "2018-04-10T13:58:10Z")

</div>

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/](http://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/](http://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/](http://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/](http://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:in`host='  
/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:in`initialize'  
/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:in`build'  
/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:in`run'  
/Users/developer/Downloads/ELK6/logstash-6.0.0/logstash-core/lib/logstash/pipeline.rb:574:in `inputworker'

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 8, 2018, 1:58pm UTC](https://discuss.elastic.co/t/logstash-couchdb-changes-plugin-with-a-host-different-from-localhost/127498/2 "2018-05-08T13:58:15Z")

</div>

Closed on May 8, 2018, 1:58pm UTC

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