# How do I create an Index in DOS shell?!

**URL:** <https://discuss.elastic.co/t/how-do-i-create-an-index-in-dos-shell/34700>\
**Category:** Elasticsearch\
**Created:** [November 16, 2015, 4:28pm UTC](https://discuss.elastic.co/t/how-do-i-create-an-index-in-dos-shell/34700 "2015-11-16T16:28:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjdepaul](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jjdepaul](https://discuss.elastic.co/u/jjdepaul)\
**Post date:** [November 16, 2015, 4:28pm UTC](https://discuss.elastic.co/t/how-do-i-create-an-index-in-dos-shell/34700/1 "2015-11-16T16:28:16Z")

</div>

Sorry, this isn't a Logstash related question, but rather a DOS shell question. I have a simple index to create - sample below, it works in cygwin shell, but not in DOS - how do I specify the right things at the end of the command to indicate that the data follows. I tried removing single quote after -d, and tried removing -d, to no avail. Tried googling, no luck. Need a little hint from this smart group.

```
curl -XPUT localhost:9200/orders/orders_logs/_mapping?pretty -d'
{
"orders_logs" : {
        "properties" : {
          "@timestamp" : {
            "type" : "date",
            "format" : "strict_date_optional_time||epoch_millis"
          },
          "@version" : {
            "type" : "string"
          },
          "clientId" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "env" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "fulfillmentModule" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "host" : {
            "type" : "string",
            "index" : "not_analyzed"
          },
          "message" : {
            "type" : "string"
          }
        }
       }
}'
```

---

<div class="post-metadata">

**Author:** ![jjdepaul](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jjdepaul](https://discuss.elastic.co/u/jjdepaul)\
**Post date:** [November 16, 2015, 4:36pm UTC](https://discuss.elastic.co/t/how-do-i-create-an-index-in-dos-shell/34700/2 "2015-11-16T16:36:15Z")

</div>

I tried it with a carrot symbol ( ^ ) at the end of each line, but no luck....

---

<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:38pm UTC](https://discuss.elastic.co/t/how-do-i-create-an-index-in-dos-shell/34700/3 "2017-07-05T23:38:10Z")

</div>

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


