# Curator\_cli: filter suffix pattern seems to be acting like a regex pattern

**URL:** <https://discuss.elastic.co/t/curator-cli-filter-suffix-pattern-seems-to-be-acting-like-a-regex-pattern/192947>\
**Category:** Elasticsearch\
**Tags:** curator\
**Created:** [July 30, 2019, 4:30pm UTC](https://discuss.elastic.co/t/curator-cli-filter-suffix-pattern-seems-to-be-acting-like-a-regex-pattern/192947 "2019-07-30T16:30:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel314](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel314/32/21668_2.png) [@Daniel314](https://discuss.elastic.co/u/Daniel314)\
**Post date:** [July 30, 2019, 4:30pm UTC](https://discuss.elastic.co/t/curator-cli-filter-suffix-pattern-seems-to-be-acting-like-a-regex-pattern/192947/1 "2019-07-30T16:30:33Z")

</div>

Hello,

I'm using curator\_cli version 5.7.5.  
When the following command was executed, the filter pattern matched every single index (and consequently deleted every index). Is this expected behavior? From what I can tell in the documentation, it seems like a suffix match should be a substring match, NOT a regex match.

$ curator\_cli delete\_indices --ignore\_empty\_list --filter\_list '{"filtertype":"pattern","kind":"suffix","value":"/?"}'

Thank you for your time and consideration.

```
 - Daniel
```

---

<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:** [August 27, 2019, 4:30pm UTC](https://discuss.elastic.co/t/curator-cli-filter-suffix-pattern-seems-to-be-acting-like-a-regex-pattern/192947/2 "2019-08-27T16:30:39Z")

</div>

Closed on August 27, 2019, 4:30pm UTC

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