I am pulling metrics with http_poller. its got all sort of fun. so i tried to sake of ease to copy a field out of an array and put it in its own field. I want to graph it based on timestamps. But elastic is creating it as a text and not a numeric value:
example of a value: @timestamp = February 16th 2019, 15:38:00.495
xio-ds1-latency = 431
how do i make it numeric before it hits ES? END GAME is: I want to build a bar graph showing ever minute the latency value of from this field. The idea is so i can show lag based on time of the polling.
If i understand it all...
I cant add it to the y field in kibana because it not numeric.
Is it numeric in logstash? If you use a stdout { codec => rubydebug } do you get
"xio-ds1-latency" => 431
or
"xio-ds1-latency" => "431"
Anyways, the way to make sure is to use a mapping template. Questions about details of how to use a template would be better asked in the elasticsearch forum.
If you are using a daily index then if you change that it will start working when the index rolls over. For the current index it is already locked in as being a string, but in a new index it should appear as numeric.
so this is what i have so far.. but it doesn't seem to going to integer..
but I have been deleting the index in kibana before it run it, and in kibana i deleted the index under elastic search. what is the best way to wipe out the index. i am just testing....
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.