# Kibana Queries - depends on the order of the fields?

**URL:** <https://discuss.elastic.co/t/kibana-queries-depends-on-the-order-of-the-fields/266538>\
**Category:** Elasticsearch\
**Created:** [March 8, 2021, 10:41am UTC](https://discuss.elastic.co/t/kibana-queries-depends-on-the-order-of-the-fields/266538 "2021-03-08T10:41:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Kabelka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jan_kabelka/32/72840_2.png) [@Jan\_Kabelka](https://discuss.elastic.co/u/Jan_Kabelka)\
**Post date:** [March 8, 2021, 10:41am UTC](https://discuss.elastic.co/t/kibana-queries-depends-on-the-order-of-the-fields/266538/1 "2021-03-08T10:41:37Z")

</div>

Hi, I did not find answer on the Internet:( I would like to know - from cluster utilization perspective - if depends on order of fields in query. Specifically, lets say I have index and data below:

"\_index": "firewall"

There are more blades sending logs on my firewalls (it means "blade" logs are subset of all logs in index "firewall"), e.g.:

"firewall.blade" : "firewall"  
"firewall.blade" : "application"  
"firewall.blade" : "ips"

Which query is more effective?

"source.ip" : "10.1.1.2" OR "source.ip" : "10.45.2.5"

("source.ip" : "10.1.1.2" OR "source.ip" : "10.45.2.5") AND "firewall.blade" : "application"

"firewall.blade" : "application" AND ("source.ip" : "10.1.1.2" OR "source.ip" : "10.45.2.5")

Thank you! Jan

---

<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:** [April 5, 2021, 10:41am UTC](https://discuss.elastic.co/t/kibana-queries-depends-on-the-order-of-the-fields/266538/2 "2021-04-05T10:41:53Z")

</div>

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