How do I create an Index in DOS shell?!


(James) #1

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"
          }
        }
       }
}'

(James) #2

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


(system) #3