# Large numbers in KQL is difficult

**URL:** <https://discuss.elastic.co/t/large-numbers-in-kql-is-difficult/249935>\
**Category:** Kibana\
**Created:** [September 25, 2020, 8:59am UTC](https://discuss.elastic.co/t/large-numbers-in-kql-is-difficult/249935 "2020-09-25T08:59:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bodo.te](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bodo.te/32/54029_2.png) [@bodo.te](https://discuss.elastic.co/u/bodo.te)\
**Post date:** [September 25, 2020, 8:59am UTC](https://discuss.elastic.co/t/large-numbers-in-kql-is-difficult/249935/1 "2020-09-25T08:59:15Z")

</div>

Hi ,  
I want to query "event.duration" with KQL.  
Problem is: event.duration is in nano sec, but since I am querying "Mysql Slow Queries" im interested e.g. is a query like this :

> event.duration \> 180000000000

which would give me als mysql slow query of more then 3 minutes length.  
So the scale I am dealing with is seconds or minutes, but KQL forces me to write nanoseconds , which is very impractical.  
Even when I change the the number format in the Index Pattern, Kibanas Discover will SHOW the event.duration in seconds , but will still interpret KQL QUERIES in nano sec. It does not even allow me to write at least

> event.duration \> '180,000,000,000' #does not work

Is there any way to make querying easier ? (Google didn't find help)

Bodo

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [September 29, 2020, 6:32am UTC](https://discuss.elastic.co/t/large-numbers-in-kql-is-difficult/249935/2 "2020-09-29T06:32:52Z")

</div>

Hi

So you're having a long typed ES field, and you're formatting it as duration in the index pattern, right? There is currently no way to make it easier, however this sound like a good enhancement, so you could start an feature request here: [https://github.com/elastic/kibana/issues/new?template=Feature\_request.md](https://github.com/elastic/kibana/issues/new?template=Feature_request.md)

Many thx and best,  
Matthias

---

<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:** [October 27, 2020, 6:32am UTC](https://discuss.elastic.co/t/large-numbers-in-kql-is-difficult/249935/3 "2020-10-27T06:32:53Z")

</div>

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