# Duration values format in Kibana

**URL:** https://discuss.elastic.co/t/duration-values-format-in-kibana/94396
**Category:** Kibana
**Created:** [July 24, 2017, 9:38pm UTC](https://discuss.elastic.co/t/duration-values-format-in-kibana/94396 "2017-07-24T21:38:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Bob04](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@Bob04](https://discuss.elastic.co/u/Bob04)
#### Post date: [July 24, 2017, 9:38pm UTC](https://discuss.elastic.co/t/duration-values-format-in-kibana/94396/1 "2017-07-24T21:38:39Z")

</div>

I have a duration field that is calculated as a difference between two data values.

In Kibana, I updated field `Format` as `Duration`, `Input Format` as `Seconds` and `Output Format` as `Human Readable`.

 ![](https://us1.discourse-cdn.com/elastic/original/3X/b/3/b3562e8f8bff443bd7e945d7f972ffcfd1c41cc6.png)

But on the graph the value is displayed as 5 minutes without any seconds values.

Is it possible to change the format so value on graph would be displayed as 5:16 or 5 min 16 seconds?

---

<div class="post-metadata">

### Author: ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)
#### Post date: [July 24, 2017, 9:59pm UTC](https://discuss.elastic.co/t/duration-values-format-in-kibana/94396/2 "2017-07-24T21:59:42Z")

</div>

Oddly enough, the formatter don't provide a way to format the time like you're asking. "Human Readable" is using [moment.js duration](http://momentjs.com/docs/#/durations/) under the hood, and the Number formatter doesn't know about time.

Looks like you can either pick seconds or minutes in your example, assuming you wanted to deal with fractional seconds (ie. 6:20 becomes 6.33).

It would be nice to add support [moment's format](http://momentjs.com/docs/#/displaying/) and allow users to pick whatever formatting they liked. I thought Kibana used to have that, there must be a reason it was removed, or maybe I'm simply mistaken. I encourage you to open an issue to add format, seems useful.

---

<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: [August 21, 2017, 9:59pm UTC](https://discuss.elastic.co/t/duration-values-format-in-kibana/94396/3 "2017-08-21T21:59:49Z")

</div>

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