# Multipe terms and date range

**URL:** <https://discuss.elastic.co/t/multipe-terms-and-date-range/173125>\
**Category:** Elasticsearch\
**Created:** [March 20, 2019, 11:04am UTC](https://discuss.elastic.co/t/multipe-terms-and-date-range/173125 "2019-03-20T11:04:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 20, 2019, 11:19am UTC](https://discuss.elastic.co/t/multipe-terms-and-date-range/173125/2 "2019-03-20T11:19:54Z")

</div>

Please format your code, logs or configuration files using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

This is the icon to use if you are not using markdown format:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e6e239431ec2d71cbf1beef741f2e93e7cc762c.jpg)

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.  
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.  
Please update your post.

You should combine all your queries within a `bool` query under a `must` array.  
Also the `q=logLevel:AUDIT` should be replaced by a `query_string` query that you would also put inside the `must` array. Or a `match` query.

See [https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html) for more details about `bool` queries.

---

_[View the full topic](https://discuss.elastic.co/t/multipe-terms-and-date-range/173125)._
