# 2 'musts' in 1 bool illegal?

**URL:** <https://discuss.elastic.co/t/2-musts-in-1-bool-illegal/103846>\
**Category:** Kibana\
**Created:** [October 13, 2017, 7:30am UTC](https://discuss.elastic.co/t/2-musts-in-1-bool-illegal/103846 "2017-10-13T07:30:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mojster](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mojster/32/21209_2.png) [@Mojster](https://discuss.elastic.co/u/Mojster)\
**Post date:** [October 13, 2017, 7:41am UTC](https://discuss.elastic.co/t/2-musts-in-1-bool-illegal/103846/2 "2017-10-13T07:41:14Z")

</div>

Yes.

```auto
"must" : [
	{"match" : {"message:" "localhost"}},
	{"match" : {
		"range": {
			"@timestamp" : {
				"lt" : "now/h"
			}
		}
	}
]

```

This is the proper syntax.

---

_[View the full topic](https://discuss.elastic.co/t/2-musts-in-1-bool-illegal/103846)._
