# Convert all fields to string while indexing and while reindexing

**URL:** <https://discuss.elastic.co/t/convert-all-fields-to-string-while-indexing-and-while-reindexing/129492>\
**Category:** Elasticsearch\
**Created:** [April 25, 2018, 12:46pm UTC](https://discuss.elastic.co/t/convert-all-fields-to-string-while-indexing-and-while-reindexing/129492 "2018-04-25T12:46:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik\_Priyadarshan](https://avatars.discourse-cdn.com/v4/letter/k/eb8c5e/32.png) [@Karthik\_Priyadarshan](https://discuss.elastic.co/u/Karthik_Priyadarshan)\
**Post date:** [April 25, 2018, 12:46pm UTC](https://discuss.elastic.co/t/convert-all-fields-to-string-while-indexing-and-while-reindexing/129492/1 "2018-04-25T12:46:18Z")

</div>

I have logs coming in from logstash and fluentd and I do not know what fields they have as they will sent by different people. I want to convert all fields to string unless i get a mapping from the people who are sending the logs and also would like to reindex with the given mapping if you they have already been indexed by converting all of them to string.

---

<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:** [May 23, 2018, 12:46pm UTC](https://discuss.elastic.co/t/convert-all-fields-to-string-while-indexing-and-while-reindexing/129492/2 "2018-05-23T12:46:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
