# Issue on collectd setup!

**URL:** <https://discuss.elastic.co/t/issue-on-collectd-setup/24483>\
**Category:** Logstash\
**Created:** [June 27, 2015, 4:13pm UTC](https://discuss.elastic.co/t/issue-on-collectd-setup/24483 "2015-06-27T16:13:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gugansankar](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@gugansankar](https://discuss.elastic.co/u/gugansankar)\
**Post date:** [June 27, 2015, 4:13pm UTC](https://discuss.elastic.co/t/issue-on-collectd-setup/24483/1 "2015-06-27T16:13:48Z")

</div>

Tried to setup collectd to push my network related stuff to Logstash/Elasticsearch and Kibana. Collectd is pushing logs to logstash. I have verified that by set output to stdout{} option.

But when I redirect the output to elasticsearch, no index/types are created. Means, no data is created on Elasticsearch.

Logstash output config :  
output {  
elasticsearch {  
host =\> localhost  
}  
stdout { }  
}

I couldn't see any error either in logstash or elasticsearch to move further on this case. Please someone give idea on this.

This is the log when I redirect the output to logstash stdout file:  
{"host":"test-srv1","@timestamp":"2015-06-27T14:44:30.247Z","plugin":"cpu","plugin\_instance":"0","collectd\_type":"cpu","type\_instance":"user","value":388319601,"@version":"1","type":"collectd"}{"host":"test-srv1","@timestamp":"2015-06-27T14:44:30.247Z","plugin":"cpu","plugin\_instance":"0","collectd\_type":"cpu","type\_instance":"nice","value":8215544,"@version":"1","type":"collectd"}{"host":"test-srv1","@timestamp":"2015-06-27T14:44:30.247Z","plugin":"cpu","plugin\_instance":"0","collectd\_type":"cpu","type\_instance":"system","value":504912201,"@version":"1","type":"collectd"}{"host":"test-srv1","@timestamp":"2015-06-27T14:44:30.247Z","plugin":"cpu","plugin\_instance":"0","collectd\_type":"cpu","type\_instance":"idle","value":7398660093,"@version":"1","type":"collectd"}{"host":"test-srv1","@timestamp":"2015-06-27T14:44:30.247Z","plugin":"cpu","plugin\_instance":"0","collectd\_type":"cpu","type\_instance":"wait","value":68402900,"@version":"1","type":"collectd"}{"host":"test-srv1","@timestamp":"2015-06-27T14:44:30.247Z","plugin":"cpu","plugin\_instance":"0","collectd\_type":"cpu","type\_instance":"interrupt","value":14303643,"@version":"1","type":"collectd"}{"host":"test-srv1","@timestamp":"2015-06-27T14:44:30.247Z","plugin":"cpu","plugin\_instance":"0","collectd\_type":"cpu","type\_instance":"softirq","value":76156622,"@version":"1","type":"collectd"}{"host":"test-srv1","@timestamp":"2015-06-27T14:44:30.247Z","plugin":"cpu","plugin\_instance":"0","collectd\_type":"cpu","type\_instance":"steal","value":0,"@version":"1","type":"collectd"}

Not sure, why the records are not created in Elasticsearch.

---

<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:** [June 27, 2015, 10:00pm UTC](https://discuss.elastic.co/t/issue-on-collectd-setup/24483/2 "2015-06-27T22:00:16Z")

</div>

That looks fine.

Can you `curl localhost:9200` to see the response from ES?

---

<div class="post-metadata">

**Author:** ![gugansankar](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@gugansankar](https://discuss.elastic.co/u/gugansankar)\
**Post date:** [June 29, 2015, 5:03am UTC](https://discuss.elastic.co/t/issue-on-collectd-setup/24483/3 "2015-06-29T05:03:34Z")

</div>

@warkolm this is my ELS output,

* * *

## { "status" : 200, "name" : "Node 1", "version" : { "number" : "1.3.7", "build\_hash" : "3042293e4b219dfb855a4e6c64241c530d1abeb0", "build\_timestamp" : "2014-12-16T13:59:32Z", "build\_snapshot" : false, "lucene\_version" : "4.9" }, "tagline" : "You Know, for Search" }

## curl [http://localhost:9200/\_search?pretty](http://localhost:9200/_search?pretty) { "took" : 1, "timed\_out" : false, "\_shards" : { "total" : 0, "successful" : 0, "failed" : 0 }, "hits" : { "total" : 0, "max\_score" : 0.0, "hits" : [] } }

Logstash output config:  
output {  
elasticsearch {  
host =\> localhost  
}  
stdout { codec =\> json }  
}

---

<div class="post-metadata">

**Author:** ![gugansankar](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@gugansankar](https://discuss.elastic.co/u/gugansankar)\
**Post date:** [June 29, 2015, 8:05am UTC](https://discuss.elastic.co/t/issue-on-collectd-setup/24483/4 "2015-06-29T08:05:02Z")

</div>

Any chance to check this ? .

Not sure why Index are not created in ELS. From the Collectd output, it doesn't mention the index name where the data going to store. Am I missing anything in the config file ? . Please someone help me on this

---

<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:** [June 29, 2015, 8:05am UTC](https://discuss.elastic.co/t/issue-on-collectd-setup/24483/5 "2015-06-29T08:05:16Z")

</div>

You're running a bit of an old version there, I'd encourage you to upgrade.

It looks like LS is not talking to ES, try using the HTTP protocol in the output and see what you get.

---

<div class="post-metadata">

**Author:** ![gugansankar](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@gugansankar](https://discuss.elastic.co/u/gugansankar)\
**Post date:** [June 29, 2015, 9:41am UTC](https://discuss.elastic.co/t/issue-on-collectd-setup/24483/6 "2015-06-29T09:41:18Z")

</div>

Thanks @warkolm . Now index are created in ELS. 🙂 , I will test further.

---

<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:36am UTC](https://discuss.elastic.co/t/issue-on-collectd-setup/24483/7 "2017-07-06T05:36:12Z")

</div>


