Set field as not_analyzed in Elastic Search

Also, you obviously don't have curl installed on your Windows box. Perhaps you should use Sense, Postman, or some other browser plugin instead.

Ok I changed it to this but still doesn't work

curl -XPUT 'localhost:9200/_template/template_1' -d'{
"template": "log-*",
"settings": {
"number_of_shards": 1
},
"mappings": {
"type1": {
"_source": {
"enabled": false
},
"properties": {
"Message": {
"type": "string",
"index": "not_analyzed"
},
"created_at": {
"type": "date",
"format": "EEE MMM dd HH:mm:ss Z YYYY"
}
}
}
}
}'

pause

I do have curl installed I can write command like list all indexes and so on and that works

I tried what was suggested by emperor as well but then I get an error too:

And when I run my batch file after making the above changes I get this:

What is elk ip address and where do I get it @emperor

change your localhost to your elk listen ipaddress