# Kibana query language - how do I filter fieldA\>fieldB

**URL:** <https://discuss.elastic.co/t/kibana-query-language-how-do-i-filter-fielda-fieldb/21733>\
**Category:** Elasticsearch\
**Created:** [January 20, 2015, 1:06pm UTC](https://discuss.elastic.co/t/kibana-query-language-how-do-i-filter-fielda-fieldb/21733 "2015-01-20T13:06:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregory\_Touretsky](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@Gregory\_Touretsky](https://discuss.elastic.co/u/Gregory_Touretsky)\
**Post date:** [January 20, 2015, 1:06pm UTC](https://discuss.elastic.co/t/kibana-query-language-how-do-i-filter-fielda-fieldb/21733/1 "2015-01-20T13:06:21Z")

</div>

I want to filter my ES data via Kibana by comparing 2 numeric fields.  
Sample record:  
fieldA=25 fieldB=38 msg=whatever

I need a way to show only records where fieldA\>fieldB

The only suggestion I found so far is fieldA:[@fieldB TO \*]  
However, this doesn't work - I get no results, although I see records  
which should meet this criteria

I'm running Kibana4 beta3

Thanks,  
Gregory

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f4626052-c83f-4151-9d55-1f57f43e5516%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f4626052-c83f-4151-9d55-1f57f43e5516%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:37am UTC](https://discuss.elastic.co/t/kibana-query-language-how-do-i-filter-fielda-fieldb/21733/2 "2017-07-06T00:37:45Z")

</div>


