# Index Template Field Whitelist

**URL:** <https://discuss.elastic.co/t/index-template-field-whitelist/222777>\
**Category:** Elasticsearch\
**Created:** [March 9, 2020, 6:12pm UTC](https://discuss.elastic.co/t/index-template-field-whitelist/222777 "2020-03-09T18:12:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![seth.yes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seth.yes/32/11788_2.png) [@seth.yes](https://discuss.elastic.co/u/seth.yes)\
**Post date:** [March 9, 2020, 6:12pm UTC](https://discuss.elastic.co/t/index-template-field-whitelist/222777/1 "2020-03-09T18:12:11Z")

</div>

_Using Elasticsearch 7.4.2_

Is there a concept of a field whitelist for indices/index patterns? I want to have ~150 fields whitelisted for an index, and other fields to be automatically dropped.

My use-case is that an old unmaintained service is exporting data to Elasticsearch. When this service was developed, it would consume any data from another service and create key/val pairs in ES. Many of these indices have more fields than rows, which is causing significant performance degredation.

---

<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:** [April 6, 2020, 6:12pm UTC](https://discuss.elastic.co/t/index-template-field-whitelist/222777/2 "2020-04-06T18:12:23Z")

</div>

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