# Display concurency in Kibana 5.x

**URL:** <https://discuss.elastic.co/t/display-concurency-in-kibana-5-x/110217>\
**Category:** Kibana\
**Created:** [December 4, 2017, 9:57pm UTC](https://discuss.elastic.co/t/display-concurency-in-kibana-5-x/110217 "2017-12-04T21:57:52Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [January 8, 2018, 10:38am UTC](https://discuss.elastic.co/t/display-concurency-in-kibana-5-x/110217/21 "2018-01-08T10:38:32Z")

</div>

In which way did the failure manifest? From your mapping it looks like the field might be called `netflow.flow_duration`. The `stepSeconds` should be smaller than the size of the buckets that will be used in the date histogram aggregation on the x-axis of the visualization. If the value is greater, gaps might appear in the chart.

---

<div class="post-metadata">

**Author:** ![zahodi](https://avatars.discourse-cdn.com/v4/letter/z/e36b37/32.png) [@zahodi](https://discuss.elastic.co/u/zahodi)\
**Post date:** [January 8, 2018, 5:55pm UTC](https://discuss.elastic.co/t/display-concurency-in-kibana-5-x/110217/22 "2018-01-08T17:55:24Z")

</div>

@weltenwort, this is my error:

> Caused by: java.lang.ClassCastException: Cannot cast java.lang.Double to java.lang.Long  
> at java.lang.Class.cast(Class.java:3369) ~[?:1.8.0\_131]  
> at sun.invoke.util.ValueConversions.primitiveConversion(ValueConversions.java:247) ~[?:?]  
> at sun.invoke.util.ValueConversions.unboxLong(ValueConversions.java:121) ~[?:?]  
> at org.elasticsearch.painless.PainlessScript$Script.execute(def stepSeconds = doc['netflow.flow\_duration'].value;

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [January 8, 2018, 8:01pm UTC](https://discuss.elastic.co/t/display-concurency-in-kibana-5-x/110217/23 "2018-01-08T20:01:35Z")

</div>

Have you tried using `double stepSeconds = doc...`?

---

<div class="post-metadata">

**Author:** ![zahodi](https://avatars.discourse-cdn.com/v4/letter/z/e36b37/32.png) [@zahodi](https://discuss.elastic.co/u/zahodi)\
**Post date:** [January 8, 2018, 10:15pm UTC](https://discuss.elastic.co/t/display-concurency-in-kibana-5-x/110217/24 "2018-01-08T22:15:43Z")

</div>

@weltenwort, netflow.flow\_duration is a float.

---

<div class="post-metadata">

**Author:** ![zahodi](https://avatars.discourse-cdn.com/v4/letter/z/e36b37/32.png) [@zahodi](https://discuss.elastic.co/u/zahodi)\
**Post date:** [January 11, 2018, 5:04pm UTC](https://discuss.elastic.co/t/display-concurency-in-kibana-5-x/110217/25 "2018-01-11T17:04:03Z")

</div>

@weltenwort, Does the duration\_steps field has to include start and end times in an array? I should be able to calculate that field before it comes into elasticsearch.

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [January 15, 2018, 3:59pm UTC](https://discuss.elastic.co/t/display-concurency-in-kibana-5-x/110217/26 "2018-01-15T15:59:05Z")

</div>

That depends on whether you want the call to be considered "ongoing" in those start and end buckets or not. I would guess that you want to include them.

---

<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:** [February 12, 2018, 3:59pm UTC](https://discuss.elastic.co/t/display-concurency-in-kibana-5-x/110217/27 "2018-02-12T15:59:15Z")

</div>

Closed on February 12, 2018, 3:59pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.

[Previous page](https://discuss.elastic.co/t/display-concurency-in-kibana-5-x/110217.md?page=1)
