The above code is not working, basically i need to create daily average build duration visualization with the script field. Can someone help me to achieve the same?
This does not feel like a logstash question. Either you are asking about a presentation issue in kibana, or you are asking about a scripting issue when indexing (which would make it an elasticsearch question).
In my index already i have field called build duration but it is in string type, Since i want to visualize the average of build_duration In Line chart Y-axis i want to select Average but if i select it shows The index pattern build-info does not contain any of the following compatible field types: number or histogram So for this reason i am looking to create scripted field to calculate the build duration average. currently it is in milliseconds need help to convert into HH:mm:ss format, Any help would be highly appreciated.
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.