# How to use OR in Dev Tool Query

**URL:** <https://discuss.elastic.co/t/how-to-use-or-in-dev-tool-query/213290>\
**Category:** Elasticsearch\
**Created:** [December 29, 2019, 5:31pm UTC](https://discuss.elastic.co/t/how-to-use-or-in-dev-tool-query/213290 "2019-12-29T17:31:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fosiul\_Alam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fosiul_alam/32/43335_2.png) [@Fosiul\_Alam](https://discuss.elastic.co/u/Fosiul_Alam)\
**Post date:** [December 29, 2019, 5:31pm UTC](https://discuss.elastic.co/t/how-to-use-or-in-dev-tool-query/213290/1 "2019-12-29T17:31:52Z")

</div>

Hi Bellow Search provides me Log where it has both "value": "HB" and "value": "1234567"

What I am looking for this if this match

("value": "HB" OR "value": "TR" ) AND "value": "1234567"

but not understand how to do in bellow ,

GET \_search  
{  
"query": {  
"bool": {  
"must": [  
{  
"match": {  
"log.file.path": "mylog.log"  
}  
},

```
    {
      "term": {
         "GPS-LOG.COMMAND": {
          "value": "HB"
        }
      }
    },
     {
      "term": {
         "GPS-LOG.IMEI": {
          "value": "1234567"
        }
      }
    }

    

  ],
  "filter": {
    "range": {
      "@timestamp": {
        "gte": "now-10m"
      }
    }
  }
    }

```

}

---

<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:** [January 26, 2020, 5:31pm UTC](https://discuss.elastic.co/t/how-to-use-or-in-dev-tool-query/213290/2 "2020-01-26T17:31:57Z")

</div>

Closed on January 26, 2020, 5:31pm UTC

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