# What can explain ElasticSearch 2.4 not accepting to create watchers via curl?

**URL:** <https://discuss.elastic.co/t/what-can-explain-elasticsearch-2-4-not-accepting-to-create-watchers-via-curl/122070>\
**Category:** Elasticsearch\
**Created:** [March 1, 2018, 1:23pm UTC](https://discuss.elastic.co/t/what-can-explain-elasticsearch-2-4-not-accepting-to-create-watchers-via-curl/122070 "2018-03-01T13:23:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ujjain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ujjain/32/27378_2.png) [@ujjain](https://discuss.elastic.co/u/ujjain)\
**Post date:** [March 1, 2018, 1:23pm UTC](https://discuss.elastic.co/t/what-can-explain-elasticsearch-2-4-not-accepting-to-create-watchers-via-curl/122070/1 "2018-03-01T13:23:21Z")

</div>

```
[root@elk01 ~]# curl -XPUT 'http://127.0.0.1:9200/_watcher/watch/log_error_watch' -d '{
  "trigger" : {
    "schedule" : { "interval" : "10s" }
  },
  "input" : {
    "search" : {
      "request" : {
        "indices" : ["logs"],
        "body" : {
          "query" : {
            "match" : { "message": "error" }
          }
        }
      }
    }
  }
}'
{"error":{"root_cause":[{"type":"invalid_index_name_exception","reason":"Invalid index name [_watcher], must not start with '_', '-', or '+'","index_uuid":"_na_","index":"_watcher"}],"type":"invalid_index_name_exception","reason":"Invalid index name [_watcher], must not start with '_', '-', or '+'","index_uuid":"_na_","index":"_watcher"},"status":400}
[root@elk01 ~]#

```

We are using Kibana 4.6 and ES 2.4 and looking to set up alerting on our data from Heartbeat, Metricbeat and Filebeat.

---

<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:** [March 29, 2018, 1:23pm UTC](https://discuss.elastic.co/t/what-can-explain-elasticsearch-2-4-not-accepting-to-create-watchers-via-curl/122070/2 "2018-03-29T13:23:22Z")

</div>

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