# Leading zeros on number field formatting

**URL:** <https://discuss.elastic.co/t/leading-zeros-on-number-field-formatting/129653>\
**Category:** Kibana\
**Created:** [April 26, 2018, 11:55am UTC](https://discuss.elastic.co/t/leading-zeros-on-number-field-formatting/129653 "2018-04-26T11:55:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![uoberdorf](https://avatars.discourse-cdn.com/v4/letter/u/df788c/32.png) [@uoberdorf](https://discuss.elastic.co/u/uoberdorf)\
**Post date:** [April 26, 2018, 11:55am UTC](https://discuss.elastic.co/t/leading-zeros-on-number-field-formatting/129653/1 "2018-04-26T11:55:03Z")

</div>

Hi,

I am trying to format a numeric field in kibana to show leading zeros.  
The goal is to receive a fixed length on the field.

I configured a formatter on the field in the index management and followed the examples on numeral.js to receive a fixed length of five with the following format string: '00000'.

The numeric field still shows up trimmed. Is there something I am missing?

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [April 27, 2018, 12:30am UTC](https://discuss.elastic.co/t/leading-zeros-on-number-field-formatting/129653/2 "2018-04-27T00:30:25Z")

</div>

Nope there's nothing you're missing. Unfortunately Kibana's running off an forked implementation prior to that feature being introduced. I opened [https://github.com/elastic/kibana/issues/18625](https://github.com/elastic/kibana/issues/18625) to see if we can get it implemented.

---

<div class="post-metadata">

**Author:** ![uoberdorf](https://avatars.discourse-cdn.com/v4/letter/u/df788c/32.png) [@uoberdorf](https://discuss.elastic.co/u/uoberdorf)\
**Post date:** [April 27, 2018, 5:32am UTC](https://discuss.elastic.co/t/leading-zeros-on-number-field-formatting/129653/3 "2018-04-27T05:32:22Z")

</div>

Thanks Jon.  
As I assume not the highest priority gets pinned on this task, maybe an update to the help text on format fields can save future users some frustration?

---

<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:** [May 25, 2018, 5:32am UTC](https://discuss.elastic.co/t/leading-zeros-on-number-field-formatting/129653/4 "2018-05-25T05:32:24Z")

</div>

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