# Set field as not\_analyzed in Elastic Search

**URL:** <https://discuss.elastic.co/t/set-field-as-not-analyzed-in-elastic-search/58553>\
**Category:** Elasticsearch\
**Created:** [August 22, 2016, 7:31am UTC](https://discuss.elastic.co/t/set-field-as-not-analyzed-in-elastic-search/58553 "2016-08-22T07:31:47Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 22, 2016, 8:57am UTC](https://discuss.elastic.co/t/set-field-as-not-analyzed-in-elastic-search/58553/21 "2016-08-22T08:57:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Denis\_Wessels](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@Denis\_Wessels](https://discuss.elastic.co/u/Denis_Wessels)\
**Post date:** [August 22, 2016, 9:01am UTC](https://discuss.elastic.co/t/set-field-as-not-analyzed-in-elastic-search/58553/22 "2016-08-22T09:01:39Z")

</div>

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:

![](https://us1.discourse-cdn.com/elastic/original/2X/e/ef31184ff1c7c033230c122131ae6f8f407d6d84.PNG)

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

![](https://us1.discourse-cdn.com/elastic/original/2X/b/b2c510e73cd9d04fd5d8b94613190f6d69455468.PNG)

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

---

<div class="post-metadata">

**Author:** ![emperor](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@emperor](https://discuss.elastic.co/u/emperor)\
**Post date:** [August 22, 2016, 9:25am UTC](https://discuss.elastic.co/t/set-field-as-not-analyzed-in-elastic-search/58553/23 "2016-08-22T09:25:10Z")

</div>

change your localhost to your elk listen ipaddress

---

<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, 10:26pm UTC](https://discuss.elastic.co/t/set-field-as-not-analyzed-in-elastic-search/58553/24 "2017-07-05T22:26:14Z")

</div>

Closed on July 5, 2017, 10:26pm UTC



[Previous page](https://discuss.elastic.co/t/set-field-as-not-analyzed-in-elastic-search/58553.md?page=1)
