# Locking Elasticsearch operations

**URL:** <https://discuss.elastic.co/t/locking-elasticsearch-operations/2320>\
**Category:** Elasticsearch\
**Created:** [June 10, 2015, 12:51pm UTC](https://discuss.elastic.co/t/locking-elasticsearch-operations/2320 "2015-06-10T12:51:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thyagobr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thyagobr/32/602_2.png) [@thyagobr](https://discuss.elastic.co/u/thyagobr)\
**Post date:** [June 10, 2015, 12:51pm UTC](https://discuss.elastic.co/t/locking-elasticsearch-operations/2320/1 "2015-06-10T12:51:07Z")

</div>

Hi, everyone =]

I'm using ES on our company, and we're stumbling on an issue:

Is it possible to lock some operations - for example, adding fields to the mapping dynamically or deleting indices/types?

We've had problems with people running tests and misspelling field names and, accidentally, creating them instead - for example.

Thanks!

---

<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:** [June 10, 2015, 10:44pm UTC](https://discuss.elastic.co/t/locking-elasticsearch-operations/2320/2 "2015-06-10T22:44:32Z")

</div>

[Shield](https://www.elastic.co/products/shield) will help you here, it can prevent or limit all of these sorts of incorrect or malicious requests.

Otherwise, there is nothing native to do this and you need to roll your own solution.

---

<div class="post-metadata">

**Author:** ![thyagobr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thyagobr/32/602_2.png) [@thyagobr](https://discuss.elastic.co/u/thyagobr)\
**Post date:** [June 11, 2015, 2:32pm UTC](https://discuss.elastic.co/t/locking-elasticsearch-operations/2320/3 "2015-06-11T14:32:43Z")

</div>

Thanks for the help.  
I'll look into it =]

---

<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 6, 2017, 12:08am UTC](https://discuss.elastic.co/t/locking-elasticsearch-operations/2320/4 "2017-07-06T00:08:06Z")

</div>

Closed on July 6, 2017, 12:08am UTC


