# Help to query in kibana

**URL:** <https://discuss.elastic.co/t/help-to-query-in-kibana/104451>\
**Category:** Kibana\
**Created:** [October 18, 2017, 7:50pm UTC](https://discuss.elastic.co/t/help-to-query-in-kibana/104451 "2017-10-18T19:50:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adityajain19](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adityajain19/32/23171_2.png) [@adityajain19](https://discuss.elastic.co/u/adityajain19)\
**Post date:** [October 18, 2017, 7:50pm UTC](https://discuss.elastic.co/t/help-to-query-in-kibana/104451/1 "2017-10-18T19:50:17Z")

</div>

I have a field message in kibana which comes from elasticsearch

{ "dateTime" : "2017-10-18 19:34:48,464", "host":"", "port":"", "txnIdentifier":"f3179228-7c39-40a8-b964-c9cba811d378", "serviceName":"CXP\_UPS\_T\_PROCESS\_DEVICE", "executionTime":"150006", "threadId":"pool-3-thread-1", "sessionId":"", "keyInfo":{"eventMessage": "Ignoring device record : A90FF87C-08E3-461F-AF9C-8DDAFB6E0E12", "deviceId": "A90FF87C-08E3-461F-AF9C-8DDAFB6E0E12", "sourceCodeClassName":"DeviceRecordProcessingTaskAssembly", "sourceCodeLineNumber":"58"}, "channelName":"AgilexTest", "remoteHost":"", "errorCode":"", "errorMsg":"", "environment":"TEST", "component":"UPS-LAM", "request":"", "response":""}

is the value i want to aggregate on executionTime field with in, values = or \> or \< somthing like this. Can we do this ?

Regards  
Aditya

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [October 18, 2017, 10:11pm UTC](https://discuss.elastic.co/t/help-to-query-in-kibana/104451/2 "2017-10-18T22:11:02Z")

</div>

Numerical fields can be queried by range with the lucene syntax `executionTime:[1000 TO 2000]`

Check your index mapping to determine the actual type of executionTime, but it looks like executionTime is stored as a string because its value is surrounded by quotes

---

<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:** [November 15, 2017, 10:11pm UTC](https://discuss.elastic.co/t/help-to-query-in-kibana/104451/3 "2017-11-15T22:11:18Z")

</div>

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