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.