# Kibana field is date, not string

**URL:** <https://discuss.elastic.co/t/kibana-field-is-date-not-string/148831>\
**Category:** Kibana\
**Created:** [September 17, 2018, 12:23pm UTC](https://discuss.elastic.co/t/kibana-field-is-date-not-string/148831 "2018-09-17T12:23:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gudgip](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@gudgip](https://discuss.elastic.co/u/gudgip)\
**Post date:** [September 17, 2018, 12:23pm UTC](https://discuss.elastic.co/t/kibana-field-is-date-not-string/148831/1 "2018-09-17T12:23:48Z")

</div>

I am trying to create an index in Elasticsearch (via developer console of Kibana). The index looks like this:

```
PUT _template/example_index
{
  "index_patterns": ["example_index*"],
  "settings": {
    "number_of_shards": 5,
    "number_of_replicas": 1
  },
  "mappings": {
    "track": {
      "properties": {
        "hash": {
          "type": "keyword"
        },
        "time": {
          "type": "date"
        }
      }
    }
  }
}

```

After that I put some data in Elasticsearch, and I create the index in Kibana via management -\> index patterns -\> create index; it will show the 'time' as a string field. It does not find any time fields at all.

The time in the added documents look like this: 1537185147182

---

<div class="post-metadata">

**Author:** ![gudgip](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@gudgip](https://discuss.elastic.co/u/gudgip)\
**Post date:** [September 17, 2018, 12:39pm UTC](https://discuss.elastic.co/t/kibana-field-is-date-not-string/148831/2 "2018-09-17T12:39:35Z")

</div>

The created index and the index used to insert the data had a different name. Thus elasticsearch uses the dynamic way, and creates it how it likes.

Changing the index name fixed this.

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [September 18, 2018, 4:14am UTC](https://discuss.elastic.co/t/kibana-field-is-date-not-string/148831/3 "2018-09-18T04:14:00Z")

</div>

Glad that you reported back the solution that worked for you.

Cheers  
Rashmi

---

<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:** [October 16, 2018, 4:14am UTC](https://discuss.elastic.co/t/kibana-field-is-date-not-string/148831/4 "2018-10-16T04:14:13Z")

</div>

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