# Apply index.default\_pipeline to an index-pattern?

**URL:** https://discuss.elastic.co/t/apply-index-default-pipeline-to-an-index-pattern/306028
**Category:** Elasticsearch
**Tags:** ingest-pipeline
**Created:** [May 31, 2022, 10:30am UTC](https://discuss.elastic.co/t/apply-index-default-pipeline-to-an-index-pattern/306028 "2022-05-31T10:30:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ykara84](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ykara84/32/106391_2.png) [@ykara84](https://discuss.elastic.co/u/ykara84)
#### Post date: [May 31, 2022, 10:30am UTC](https://discuss.elastic.co/t/apply-index-default-pipeline-to-an-index-pattern/306028/1 "2022-05-31T10:30:11Z")

</div>

My data is split across monthly indexes such as `virtualisation-capacity-2022-05`. How do I set an `index.default_pipeline` for an index-pattern such as `virtualisation-capacity-*` so the default pipeline applies to all the monthly indexes past, present and future?

---

<div class="post-metadata">

### Author: ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)
#### Post date: [June 1, 2022, 10:40am UTC](https://discuss.elastic.co/t/apply-index-default-pipeline-to-an-index-pattern/306028/2 "2022-06-01T10:40:53Z")

</div>

Use [index templates](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-templates.html). But I suppose it will be applied only to the future indices and have no effect on existing indices.

---

<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 29, 2022, 10:41am UTC](https://discuss.elastic.co/t/apply-index-default-pipeline-to-an-index-pattern/306028/3 "2022-06-29T10:41:34Z")

</div>

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