简体   繁体   English

Kibana按时显示字段值

[英]Kibana display field value on time

In ElasticSearch I have these following documents (values like index and type was removed) : 在ElasticSearch中,我有以下这些文档(删除了诸如index和type之类的值):

@timestamp:March 29th 2017, 22:03:29.152 totalQuantity:154 
@timestamp:March 29th 2017, 22:06:30.242 totalQuantity:153 
@timestamp:March 29th 2017, 22:06:32.735 totalQuantity:152 

Now I want to display the totalQuantity's value evolution during time (in line chart or other graph, maybe timelion) with 3 node 现在,我要显示带有三个节点的时间(折线图或其他图形,可能是timelion)中totalQuantity的值演变

  • Y: 154 X: 22-03-29 Y:154 X:22-03-29
  • Y: 153 X: 22:06:30 Y:153 X:22:06:30
  • Y: 152 X: 22:06:32 Y:152 X:22:06:32

But I can't find how to deal with it, as I only have count, sum, median, etc on these graph but not term. 但是我找不到如何处理它的方法,因为这些图上只有计数,总和,中位数等,而没有术语。

What you want to do is to create a line/bar chart and set x-axis as date histogram where @timestamp is the property, and put sum or average of totalQuantity on y-axis. 您要做的是创建一个折线/条形图,并将x轴设置为日期直方图,其中@timestamp是属性,然后将sum或totalQuantity的平均值放在y轴上。 You will want to set your time interval in seconds so you will see the difference 2 seconds later. 您将需要设置时间间隔(以秒为单位),以便在2秒后看到差异。 No need for TimeLion as you are not calculating anything. 无需使用TimeLion,因为您无需进行任何计算。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM