# Unsure why i am unable to connect couchdb to elasticsearch via logstash

**URL:** <https://discuss.elastic.co/t/unsure-why-i-am-unable-to-connect-couchdb-to-elasticsearch-via-logstash/32052>\
**Category:** Logstash\
**Created:** [October 13, 2015, 12:32am UTC](https://discuss.elastic.co/t/unsure-why-i-am-unable-to-connect-couchdb-to-elasticsearch-via-logstash/32052 "2015-10-13T00:32:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![waitwhat](https://avatars.discourse-cdn.com/v4/letter/w/41988e/32.png) [@waitwhat](https://discuss.elastic.co/u/waitwhat)\
**Post date:** [October 13, 2015, 12:32am UTC](https://discuss.elastic.co/t/unsure-why-i-am-unable-to-connect-couchdb-to-elasticsearch-via-logstash/32052/1 "2015-10-13T00:32:52Z")

</div>

I am quite new to both Logstash and elasticsearch and as the title suggested i have no idea why my data is not being imported into elasticsearch anyway here is my logstash config file

input {  
couchdb\_changes {  
db =\> test  
host =\> "localhost"  
port =\> 5984  
codec =\> "json"  
}  
}  
output {  
elasticsearch {  
host =\> "localhost"  
index =\> "Krakkan"  
protocol =\> "http"  
host =\> "localhost"  
port =\> 9200  
codec =\> "json"  
}  
}

More info can be provided if needed

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 13, 2015, 12:35am UTC](https://discuss.elastic.co/t/unsure-why-i-am-unable-to-connect-couchdb-to-elasticsearch-via-logstash/32052/2 "2015-10-13T00:35:50Z")

</div>

What's in your logs?  
Have you tried setting `-v` or `--debug` to get more info?

---

<div class="post-metadata">

**Author:** ![waitwhat](https://avatars.discourse-cdn.com/v4/letter/w/41988e/32.png) [@waitwhat](https://discuss.elastic.co/u/waitwhat)\
**Post date:** [October 13, 2015, 12:51am UTC](https://discuss.elastic.co/t/unsure-why-i-am-unable-to-connect-couchdb-to-elasticsearch-via-logstash/32052/3 "2015-10-13T00:51:41Z")

</div>

This is the output i got from using the v flag

No sequence\_path set, generating one... {:sequence\_path=\>"/home/vbox/.couchdb\_seq", :level=\>:info}  
Connecting to CouchDB \_changes stream at: {:host=\>"localhost", :port=\>"5984", :db=\>"test", :level=\>:info}  
Create client to elasticsearch server on localhost: {:level=\>:info}  
Automatic template management enabled {:manage\_template=\>"true", :level=\>:info}  
Using mapping template {:template=\>{"template"=\>"logstash-_", "settings"=\>{"index.refresh\_interval"=\>"5s"}, "mappings"=\>{"default"=\>{"\_all"=\>{"enabled"=\>true, "omit\_norms"=\>true}, "dynamic\_templates"=\>\<Java::JavaUtil::ArrayList:-1064940777 [{"message\_field"=\>{"match"=\>"message", "match\_mapping\_type"=\>"string", "mapping"=\>{"type"=\>"string", "index"=\>"analyzed", "omit\_norms"=\>true}}}, {"string\_fields"=\>{"match"=\>"_", "match\_mapping\_type"=\>"string", "mapping"=\>{"type"=\>"string", "index"=\>"analyzed", "omit\_norms"=\>true, "fields"=\>{"raw"=\>{"type"=\>"string", "index"=\>"not\_analyzed", "ignore\_above"=\>256}}}}}]\>, "properties"=\>{"@version"=\>{"type"=\>"string", "index"=\>"not\_analyzed"}, "geoip"=\>{"type"=\>"object", "dynamic"=\>true, "properties"=\>{"location"=\>{"type"=\>"geo\_point"}}}}}}}, :level=\>:info}  
New Elasticsearch output {:cluster=\>nil, :host=\>["localhost"], :port=\>9200, :embedded=\>false, :protocol=\>"http", :level=\>:info}

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 13, 2015, 5:58am UTC](https://discuss.elastic.co/t/unsure-why-i-am-unable-to-connect-couchdb-to-elasticsearch-via-logstash/32052/4 "2015-10-13T05:58:09Z")

</div>

Things _are_ happening in your CouchDB database, right, so that there are events to pick up?

For debugging purposes I strongly recommend not hooking up ES right away. Use a `stdout { codec => rubydebug }` output first until you know you're getting the messages you want.

---

<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:** [July 6, 2017, 5:26am UTC](https://discuss.elastic.co/t/unsure-why-i-am-unable-to-connect-couchdb-to-elasticsearch-via-logstash/32052/5 "2017-07-06T05:26:44Z")

</div>


