# How do I create raw fields for all string fields by default?

**URL:** <https://discuss.elastic.co/t/how-do-i-create-raw-fields-for-all-string-fields-by-default/43701>\
**Category:** Logstash\
**Created:** [March 7, 2016, 8:19pm UTC](https://discuss.elastic.co/t/how-do-i-create-raw-fields-for-all-string-fields-by-default/43701 "2016-03-07T20:19:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MRamakri](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@MRamakri](https://discuss.elastic.co/u/MRamakri)\
**Post date:** [March 7, 2016, 8:19pm UTC](https://discuss.elastic.co/t/how-do-i-create-raw-fields-for-all-string-fields-by-default/43701/1 "2016-03-07T20:19:29Z")

</div>

I'm new to elasticsearch, and when I create an index with a CSV filter, I see that all the string fields have been created as analyzed strings. I read in some websites that logstash creates .raw fields for all string fields, but I don't see these .raw fields in my index. How do I make sure that .raw fields are created for each string field?

---

<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:** [March 10, 2016, 9:42pm UTC](https://discuss.elastic.co/t/how-do-i-create-raw-fields-for-all-string-fields-by-default/43701/2 "2016-03-10T21:42:55Z")

</div>

Logstash's default index template only applies to indexes whose names begin with "logstash-". Either follow that naming convention or adjust the template to fit your needs.

---

<div class="post-metadata">

**Author:** ![MRamakri](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@MRamakri](https://discuss.elastic.co/u/MRamakri)\
**Post date:** [March 10, 2016, 11:41pm UTC](https://discuss.elastic.co/t/how-do-i-create-raw-fields-for-all-string-fields-by-default/43701/3 "2016-03-10T23:41:04Z")

</div>

Thanks Magnus. I think I’ll create a custom template with all the column names. Right now, the column names are generated dynamically.

---

<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 6, 2017, 5:07am UTC](https://discuss.elastic.co/t/how-do-i-create-raw-fields-for-all-string-fields-by-default/43701/4 "2017-07-06T05:07:27Z")

</div>


