# How to visualize statistics on time series data in Kibana

**URL:** <https://discuss.elastic.co/t/how-to-visualize-statistics-on-time-series-data-in-kibana/16033>\
**Category:** Elasticsearch\
**Created:** [February 26, 2014, 2:01pm UTC](https://discuss.elastic.co/t/how-to-visualize-statistics-on-time-series-data-in-kibana/16033 "2014-02-26T14:01:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave\_Snigier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dave_snigier/32/1765_2.png) [@Dave\_Snigier](https://discuss.elastic.co/u/Dave_Snigier)\
**Post date:** [February 26, 2014, 2:01pm UTC](https://discuss.elastic.co/t/how-to-visualize-statistics-on-time-series-data-in-kibana/16033/1 "2014-02-26T14:01:47Z")

</div>

Howdy everyone,  
I have events with the following structure in ES:

{  
"\_index": "logstash-2014.02.25",  
"\_type": "symantecav-logs",  
"\_id": "\_5Hig6lPTUi2p-palnuplA",  
"\_score": null,  
"\_source": {  
"message": [  
"1393368016|0|2|5|3|69.16.1.13/UMTL300X.rtf|4|UMTL300X.rtf|39|192.168.23.7|17|0.167|18|0.232|43|192.168.25.22|44|9003|45|12133924"  
],  
"@version": 1,  
"@timestamp": "2014-02-25T22:40:16.000Z",  
"host": "[antivirus1.domain.net](http://antivirus1.domain.net)",  
"tags": [  
"antivirus",  
"test",  
"boston"  
],  
"file": "/antivirus/log/SSE20140225.log",  
"type": "symantecav-logs",  
"typecode": "0",  
"filename": "UMTL300X.rtf",  
"client": "[client.domain.net](http://client.domain.net)",  
"scan duration": 0.167,  
"connect duration": 0.232,  
"extension": "rtf"  
},  
"sort": [  
1393368016000,  
1393368016000  
]  
}

My goal is to visualize the max and mean of the scan and connect duration  
over time as a line graph within Kibana. Is this possible with the widgets  
currently available? I've been trying out several but haven't had much luck  
getting them to do what I'm looking for.

Here are are the ES queries I'm using on the Kibana dashboard:  
type:"symantecav-logs" AND tags:"test" AND host:"[antivirus1.domain.net](http://antivirus1.domain.net)"  
type:"symantecav-logs" AND tags:"test" AND host:"[antivirus2.domain.net](http://antivirus2.domain.net)"

thanks for any and all help you can lend to a neophyte such as myself!  
-Dave

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/fc93669e-6d95-4f99-b00d-63ad997865d2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fc93669e-6d95-4f99-b00d-63ad997865d2%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Binh\_Ly\_2](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@Binh\_Ly\_2](https://discuss.elastic.co/u/Binh_Ly_2)\
**Post date:** [February 26, 2014, 2:52pm UTC](https://discuss.elastic.co/t/how-to-visualize-statistics-on-time-series-data-in-kibana/16033/2 "2014-02-26T14:52:09Z")

</div>

When you add a Histogram panel, look in the setting Chart Value. There are  
options for max and mean in there and then in the Value Field, you can  
specify "scan duration" (or "connect duration") - I'm not 100% sure if the  
spaces in your field name might fail but if it does, you'll probably need  
to fix your LS config to output field names with no spaces. The only  
limitation right now is you can't plot multiple time series stats (Chart  
Value + Value Field) in 1 histogram at the moment. So you'll need to create  
separate histograms per Chart Value + Value Field.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/80167728-cacd-4be1-829b-9fc2abb1ab3a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/80167728-cacd-4be1-829b-9fc2abb1ab3a%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Dave\_Snigier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dave_snigier/32/1765_2.png) [@Dave\_Snigier](https://discuss.elastic.co/u/Dave_Snigier)\
**Post date:** [February 26, 2014, 8:40pm UTC](https://discuss.elastic.co/t/how-to-visualize-statistics-on-time-series-data-in-kibana/16033/3 "2014-02-26T20:40:11Z")

</div>

That did the trick! I was able to keep the spaces in the field name, but  
did need to cast the field to a float in logstash for the metric to work.

Really loving how quickly valuable data hidden in the logs can be drawn out  
and visualized with logstash+elasticsearch+kibana. Props to y'all for  
making it happen.

Thanks!  
-Dave

On Wed, Feb 26, 2014 at 9:52 AM, Binh Ly [binhly\_es@yahoo.com](mailto:binhly_es@yahoo.com) wrote:

> When you add a Histogram panel, look in the setting Chart Value. There are  
> options for max and mean in there and then in the Value Field, you can  
> specify "scan duration" (or "connect duration") - I'm not 100% sure if the  
> spaces in your field name might fail but if it does, you'll probably need  
> to fix your LS config to output field names with no spaces. The only  
> limitation right now is you can't plot multiple time series stats (Chart  
> Value + Value Field) in 1 histogram at the moment. So you'll need to create  
> separate histograms per Chart Value + Value Field.
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/mc7bmixJGe8/unsubscribe](https://groups.google.com/d/topic/elasticsearch/mc7bmixJGe8/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/80167728-cacd-4be1-829b-9fc2abb1ab3a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/80167728-cacd-4be1-829b-9fc2abb1ab3a%40googlegroups.com)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAA%3DO8vL7m1CJ9GRrmnLyJOHmWKKNoFgQc2vp-0b6pBC8ZmdHXw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAA%3DO8vL7m1CJ9GRrmnLyJOHmWKKNoFgQc2vp-0b6pBC8ZmdHXw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Binh\_Ly\_2](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@Binh\_Ly\_2](https://discuss.elastic.co/u/Binh_Ly_2)\
**Post date:** [February 26, 2014, 9:23pm UTC](https://discuss.elastic.co/t/how-to-visualize-statistics-on-time-series-data-in-kibana/16033/4 "2014-02-26T21:23:07Z")

</div>

Oh yeah forgot about the datatype - that's good that you caught that. Good  
to hear!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/00e68528-8744-4a43-bf3b-f42982929230%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/00e68528-8744-4a43-bf3b-f42982929230%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Krishnakanth\_Pidapar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krishnakanth_pidapar/32/1109_2.png) [@Krishnakanth\_Pidapar](https://discuss.elastic.co/u/Krishnakanth_Pidapar)\
**Post date:** [November 13, 2014, 9:40am UTC](https://discuss.elastic.co/t/how-to-visualize-statistics-on-time-series-data-in-kibana/16033/5 "2014-11-13T09:40:39Z")

</div>

My Apologies for picking up an old thread.

But I have the same issue. I am not able to understand what to put inside  
the Value field when I select the Chart Value as Mean or Max or total.

I have a log whose field names are

Timestamp, elapsed, label, bytes, Latency  
2014-11-13T13:05:45.430+0530,1184,PageName,7512,980  
2014-11-13T13:05:45.447+0530,1167,PageName,7512,963  
2014-11-13T13:05:45.449+0530,1262,PageName,7512,1049  
2014-11-13T13:05:45.430+0530,1332,PageName,7512,1103

The Value field says it needs an numerical value.

I want to see how the Latency is over time.. which is like timestamp vs  
Latency or timestamp vs elapsed.

Any ideas.

Thanks,  
Krishna

On Wednesday, February 26, 2014 7:31:47 PM UTC+5:30, Dave Snigier wrote:

> Howdy everyone,  
> I have events with the following structure in ES:
> 
> {  
> "\_index": "logstash-2014.02.25",  
> "\_type": "symantecav-logs",  
> "\_id": "\_5Hig6lPTUi2p-palnuplA",  
> "\_score": null,  
> "\_source": {  
> "message": [  
> "1393368016|0|2|5|3|69.16.1.13/UMTL300X.rtf|4|UMTL300X.rtf|39|192.168.23.7|17|0.167|18|0.232|43|192.168.25.22|44|9003|45|12133924 [http://69.16.1.13/UMTL300X.rtf|4|UMTL300X.rtf|39|192.168.23.7|17|0.167|18|0.232|43|192.168.25.22|44|9003|45|12133924](http://69.16.1.13/UMTL300X.rtf%7C4%7CUMTL300X.rtf%7C39%7C192.168.23.7%7C17%7C0.167%7C18%7C0.232%7C43%7C192.168.25.22%7C44%7C9003%7C45%7C12133924)"  
> ],  
> "@version": 1,  
> "@timestamp": "2014-02-25T22:40:16.000Z",  
> "host": "[antivirus1.domain.net](http://antivirus1.domain.net)",  
> "tags": [  
> "antivirus",  
> "test",  
> "boston"  
> ],  
> "file": "/antivirus/log/SSE20140225.log",  
> "type": "symantecav-logs",  
> "typecode": "0",  
> "filename": "UMTL300X.rtf",  
> "client": "[client.domain.net](http://client.domain.net)",  
> "scan duration": 0.167,  
> "connect duration": 0.232,  
> "extension": "rtf"  
> },  
> "sort": [  
> 1393368016000,  
> 1393368016000  
> ]  
> }
> 
> My goal is to visualize the max and mean of the scan and connect duration  
> over time as a line graph within Kibana. Is this possible with the widgets  
> currently available? I've been trying out several but haven't had much luck  
> getting them to do what I'm looking for.
> 
> Here are are the ES queries I'm using on the Kibana dashboard:  
> type:"symantecav-logs" AND tags:"test" AND host:"[antivirus1.domain.net](http://antivirus1.domain.net)"  
> type:"symantecav-logs" AND tags:"test" AND host:"[antivirus2.domain.net](http://antivirus2.domain.net)"
> 
> thanks for any and all help you can lend to a neophyte such as myself!  
> -Dave

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/53be466c-0b98-46cc-9568-a921fb32e135%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/53be466c-0b98-46cc-9568-a921fb32e135%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:50am UTC](https://discuss.elastic.co/t/how-to-visualize-statistics-on-time-series-data-in-kibana/16033/6 "2017-07-06T00:50:19Z")

</div>


