# Is there a way to toggle indexing of data on and off?

**URL:** <https://discuss.elastic.co/t/is-there-a-way-to-toggle-indexing-of-data-on-and-off/33288>\
**Category:** Elasticsearch\
**Created:** [October 29, 2015, 6:34pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-toggle-indexing-of-data-on-and-off/33288 "2015-10-29T18:34:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdeconto](https://avatars.discourse-cdn.com/v4/letter/g/cab0a1/32.png) [@gdeconto](https://discuss.elastic.co/u/gdeconto)\
**Post date:** [October 29, 2015, 6:34pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-toggle-indexing-of-data-on-and-off/33288/1 "2015-10-29T18:34:26Z")

</div>

odd question, but is there a way to toggle the ability of elasticsearch to accept data indexing requests?

ie say in a scenario where you are trying to create a new cluster with a specific mappings/settings, and dont want any data to get indexed until you have created those mappings/settings. or where you might need to diagnose an issue and dont want data to change while you are examining it (but have no ability to stop the data flow)

---

<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:** [October 30, 2015, 8:02am UTC](https://discuss.elastic.co/t/is-there-a-way-to-toggle-indexing-of-data-on-and-off/33288/2 "2015-10-30T08:02:15Z")

</div>

Not directly.

You could use Shield or a firewall to restrict access up to a point in time I guess.

---

<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:** [July 5, 2017, 11:41pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-toggle-indexing-of-data-on-and-off/33288/3 "2017-07-05T23:41:46Z")

</div>

Closed on July 5, 2017, 11:41pm UTC


