# Blacklisting index pattern

**URL:** <https://discuss.elastic.co/t/blacklisting-index-pattern/246565>\
**Category:** Elasticsearch\
**Created:** [August 27, 2020, 7:18am UTC](https://discuss.elastic.co/t/blacklisting-index-pattern/246565 "2020-08-27T07:18:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaustav\_Das](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaustav_das/32/74595_2.png) [@Kaustav\_Das](https://discuss.elastic.co/u/Kaustav_Das)\
**Post date:** [August 27, 2020, 7:18am UTC](https://discuss.elastic.co/t/blacklisting-index-pattern/246565/1 "2020-08-27T07:18:46Z")

</div>

We have few indices which starts with predetermined prefix. If we want other indices which are created by es, kibana, monitoring tools like (monitoring-kibana, ml-state etc) to go to specefic tenant nodes tagged with admin how this can be achieved using index patterns. One option to achieve the same is as follows

```auto
template_admin_mappings: {

* order: 2,

* index_patterns: ["ml*","monitoring*"],

* settings: {
  * index: {
    * lifecycle: {
      * name: "weekly-policy"},

    * routing: {
      * allocation: {
        * include: {
          * tenant: "admin"}}},

    * number_of_shards: "2",

    * number_of_replicas: "1"}},

* mappings: { },

* aliases: { }

```

Cons of this I have to add all regex, is there any option where I can mention all indices who dont have specefic prefix should be routed to admin data nodes

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 31, 2020, 4:44am UTC](https://discuss.elastic.co/t/blacklisting-index-pattern/246565/2 "2020-08-31T04:44:19Z")

</div>

You want an exclude list, which doesn't exist in this manner.

Feel free to create a feature request on GitHub though, it'll help us gauge interest 🙂

---

<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:** [September 28, 2020, 4:44am UTC](https://discuss.elastic.co/t/blacklisting-index-pattern/246565/3 "2020-09-28T04:44:32Z")

</div>

Closed on September 28, 2020, 4:44am UTC

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