# Specify the type when making the config for the file

**URL:** <https://discuss.elastic.co/t/specify-the-type-when-making-the-config-for-the-file/120072>\
**Category:** Logstash\
**Created:** [February 15, 2018, 9:26pm UTC](https://discuss.elastic.co/t/specify-the-type-when-making-the-config-for-the-file/120072 "2018-02-15T21:26:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pororo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pororo/32/27711_2.png) [@Pororo](https://discuss.elastic.co/u/Pororo)\
**Post date:** [February 15, 2018, 9:26pm UTC](https://discuss.elastic.co/t/specify-the-type-when-making-the-config-for-the-file/120072/1 "2018-02-15T21:26:20Z")

</div>

Hi,

For now, my json file has one attribute called "time" and I did not set the json filter in config file. I directly imported the data into elasticsearch. After that, I checked the mapping of the index I made for those data, it shows the type of "time" is "text" not "date" as I expected. I am wondering how to change the type of "time" from "text" to "date" when I am in the step of making the config?

{"time" : "2018-02-15 04:47:16.288 +0000"}

---

<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:** [March 15, 2018, 9:26pm UTC](https://discuss.elastic.co/t/specify-the-type-when-making-the-config-for-the-file/120072/2 "2018-03-15T21:26:29Z")

</div>

Closed on March 15, 2018, 9:26pm UTC

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