# java.lang.IllegalArgumentException: is too restrictive

**URL:** <https://discuss.elastic.co/t/java-lang-illegalargumentexception-is-too-restrictive/84296>\
**Category:** Elasticsearch\
**Created:** [May 2, 2017, 4:37pm UTC](https://discuss.elastic.co/t/java-lang-illegalargumentexception-is-too-restrictive/84296 "2017-05-02T16:37:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asaxty](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@asaxty](https://discuss.elastic.co/u/asaxty)\
**Post date:** [May 2, 2017, 4:37pm UTC](https://discuss.elastic.co/t/java-lang-illegalargumentexception-is-too-restrictive/84296/1 "2017-05-02T16:37:40Z")

</div>

Hi I am trying to set the following in the elasticsearch.yml file but keep running in what appear to be syntax issues on version 5.3.2

Here's the yml config:  
action.auto\_create\_index: +_-deviceauth-_,+_-conversation-_,+.security,+.monitoring\*,+.watches,+.triggered\_watches,+.watcher-

which causes the following Error (not I have also tried removing the + symbols (which I read from another thread and this resulted in a different error0

Caused by: java.lang.IllegalArgumentException: the [action.auto\_create\_index] setting value [+_-deviceauth-_,+_-conversation-_,+.security,+.monitoring\*,+.watches,+.triggered\_watches,+.watcher-] is too restrictive. disable [action.auto\_create\_index] or set it to [.watches, .triggered\_watches, .watcher-history-\*]

---

<div class="post-metadata">

**Author:** ![asaxty](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@asaxty](https://discuss.elastic.co/u/asaxty)\
**Post date:** [May 2, 2017, 5:05pm UTC](https://discuss.elastic.co/t/java-lang-illegalargumentexception-is-too-restrictive/84296/2 "2017-05-02T17:05:27Z")

</div>

Just in case anyone else get's this issue I was missing a \* at the end of the string.: It should have been..

action.auto\_create\_index: +-deviceauth-,+-conversation-,+.security,+.monitoring\*,+.watches,+.triggered\_watches,+.watcher-\*

---

<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:** [May 30, 2017, 5:09pm UTC](https://discuss.elastic.co/t/java-lang-illegalargumentexception-is-too-restrictive/84296/3 "2017-05-30T17:09:04Z")

</div>

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