# Match filter queries with OR instead of AND

**URL:** https://discuss.elastic.co/t/match-filter-queries-with-or-instead-of-and/314533
**Category:** Elasticsearch
**Tags:** elastic-stack-alerting
**Created:** [September 15, 2022, 7:15pm UTC](https://discuss.elastic.co/t/match-filter-queries-with-or-instead-of-and/314533 "2022-09-15T19:15:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mattshubs](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@mattshubs](https://discuss.elastic.co/u/mattshubs)
#### Post date: [September 15, 2022, 7:15pm UTC](https://discuss.elastic.co/t/match-filter-queries-with-or-instead-of-and/314533/1 "2022-09-15T19:15:01Z")

</div>

Hi, I am setting up alerting off of kibana logs search. Was not able to find documention for my desired use case. Is there a way to match multiple queries under a filter with OR instead of AND? This is \*.yml file.

```auto
Example:
# A list of elasticsearch filters used for find events
# These filters are joined with AND and nested in a filtered query
# For more info: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl.html

filter:
  - query:
      query_string:
        query: 'query1'
  - query:
      query_string:
        query: 'query2'

```

---

<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: [October 13, 2022, 7:15pm UTC](https://discuss.elastic.co/t/match-filter-queries-with-or-instead-of-and/314533/2 "2022-10-13T19:15:56Z")

</div>

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