Hello to everybody!
I try to do something maybe not helpful but... Glances provide export to elasticsearch and how to move this data to kibana? by logstash and here I meet error. Describe step by step:
1) config glances --export : [elasticsearch]
host=localhost
port=9200
2) try is it work: curl
http://127.0.0.1:9200/glances/mem/used | jq '.'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 152 100 152 0 0 54188 0 --:--:-- --:--:-- --:--:-- 76000
{
"_index": "glances",
"_type": "mem",
"_id": "used",
"_version": 637,
"found": true,
"_source": {
"timestamp": "2016-05-03T21:10:28.803806",
"value": "1765785600"
}
}
work, ok
3) logstash config:
input {
elasticsearch {
hosts => "localhost"
index => "glances"
query => "*"
}
}
output {
stdout {
codec => rubydebug
}
elasticsearch {
hosts => ubuntu
}
}
and this configuration not work. here is logstash log output:
{:timestamp=>"2016-05-03T21:02:34.453000+0300", :message=>"A plugin had an unrecoverable error. Will restart this plugin.\n Plugin: <LogStash::Inputs::Elasticsearch hosts=>[\"localhost\"], index=>\"glances\", query=>\"*\", codec=><LogStash::Codecs::JSON charset=>\"UTF-8\">, scan=>true, size=>1000, scroll=>\"1m\", docinfo=>false, docinfo_target=>\"@metadata\", docinfo_fields=>[\"_index\", \"_type\", \"_id\"], ssl=>false>\n Error: [400] {\"error\":{\"root_cause\":[{\"type\":\"parse_exception\",\"reason\":\"Failed to derive xcontent\"}],\"type\":\"search_phase_execution_exception\",\"reason\":\"all shards failed\",\"phase\":\"init_scan\",\"grouped\":true,\"failed_shards\":[{\"shard\":0,\"index\":\"glances\",\"node\":\"F9RiZseuQziuJX-X1j67eQ\",\"reason\":{\"type\":\"parse_exception\",\"reason\":\"Failed to derive xcontent\"}}]},\"status\":400}", :level=>:error}
So question - does any body try visualise glances output in kibana?