# Prevent regex/wildcard query

**URL:** <https://discuss.elastic.co/t/prevent-regex-wildcard-query/232204>\
**Category:** Elasticsearch\
**Created:** [May 12, 2020, 10:43am UTC](https://discuss.elastic.co/t/prevent-regex-wildcard-query/232204 "2020-05-12T10:43:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mats990](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mats990/32/37516_2.png) [@mats990](https://discuss.elastic.co/u/mats990)\
**Post date:** [May 12, 2020, 10:43am UTC](https://discuss.elastic.co/t/prevent-regex-wildcard-query/232204/1 "2020-05-12T10:43:13Z")

</div>

Hi,

Is it possible to prevent a query sent to Elasticsearch that contains regex or wildcard?  
We have issues with a query that crashes the cluster using prefix wildcard and would like to prevent that from happening in the future. How should we configure ES cluster, would any circuit breaker help, or maybe some other setting?

ES cluster version is 6

---

<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:** [June 9, 2020, 10:55am UTC](https://discuss.elastic.co/t/prevent-regex-wildcard-query/232204/2 "2020-06-09T10:55:04Z")

</div>

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