# Time stamp "\_timestamp" working but not displaying in Discover

**URL:** <https://discuss.elastic.co/t/time-stamp--timestamp-working-but-not-displaying-in-discover/64370>\
**Category:** Kibana\
**Created:** [October 30, 2016, 12:38pm UTC](https://discuss.elastic.co/t/time-stamp--timestamp-working-but-not-displaying-in-discover/64370 "2016-10-30T12:38:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brumleyscott](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@brumleyscott](https://discuss.elastic.co/u/brumleyscott)\
**Post date:** [October 30, 2016, 12:38pm UTC](https://discuss.elastic.co/t/time-stamp--timestamp-working-but-not-displaying-in-discover/64370/1 "2016-10-30T12:38:07Z")

</div>

I have an index created with jsonStr := "{"mappings": {"" + typeName + "": {"\_timestamp": {"enabled": true}}}}" which is the only way that timestamp data appears to work for me. I'm using the API to add documents using pre-formated JSON. Everything seems to work fine, but on the Discover page in Kibana shows "-" under the Time column instead of the timedate stamp. Also the \_timestamp field also does not show up.

Does anyone have any ideas?

ES Version: 2.4.1  
Kibana: 4.6.1

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [October 31, 2016, 5:43pm UTC](https://discuss.elastic.co/t/time-stamp--timestamp-working-but-not-displaying-in-discover/64370/2 "2016-10-31T17:43:55Z")

</div>

You may be relying on the feature of the `_timestamp` field to automatically set the time value for you, but you should be warned this feature is deprecated as of Elasticsearch 2.0, and doesn't exist in 5.0: [https://www.elastic.co/guide/en/elasticsearch/reference/2.4/mapping-timestamp-field.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.4/mapping-timestamp-field.html)

You should be able to achieve what you need just by adding a field with type `date` to your data, just make sure to create the value manually before indexing. I would suggest naming the field `@timestamp` which seems to be the convention.

Once you add your own timestamp value, you'll be able see the data in Discover.

---

<div class="post-metadata">

**Author:** ![brumleyscott](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@brumleyscott](https://discuss.elastic.co/u/brumleyscott)\
**Post date:** [October 31, 2016, 6:42pm UTC](https://discuss.elastic.co/t/time-stamp--timestamp-working-but-not-displaying-in-discover/64370/3 "2016-10-31T18:42:13Z")

</div>

Ok bummer that adds overhead I was trying to avoid. I was hoping there was an auto time going forward. I tried using the date also but couldn't get it to work correctly. I'll try it with the @timestamp and see if that helps.

---

<div class="post-metadata">

**Author:** ![brumleyscott](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@brumleyscott](https://discuss.elastic.co/u/brumleyscott)\
**Post date:** [October 31, 2016, 7:16pm UTC](https://discuss.elastic.co/t/time-stamp--timestamp-working-but-not-displaying-in-discover/64370/4 "2016-10-31T19:16:38Z")

</div>

Thank Tim. The @timestamp worked perfectly.

bodyStr := "{"mappings": {"" + typeName + "": {"properties": {"@timestamp": {"type": "date","format": "yyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch\_millis"}}}}}"

Then I slide epoch time stamps into the JSON.

---

<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, 1:34pm UTC](https://discuss.elastic.co/t/time-stamp--timestamp-working-but-not-displaying-in-discover/64370/5 "2017-07-06T13:34:59Z")

</div>


