# Date Time shows empty in lens, but not in discover pane

**URL:** <https://discuss.elastic.co/t/date-time-shows-empty-in-lens-but-not-in-discover-pane/283318>\
**Category:** Kibana\
**Created:** [September 3, 2021, 8:45pm UTC](https://discuss.elastic.co/t/date-time-shows-empty-in-lens-but-not-in-discover-pane/283318 "2021-09-03T20:45:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tydorius](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tydorius/32/88729_2.png) [@Tydorius](https://discuss.elastic.co/u/Tydorius)\
**Post date:** [September 3, 2021, 8:45pm UTC](https://discuss.elastic.co/t/date-time-shows-empty-in-lens-but-not-in-discover-pane/283318/1 "2021-09-03T20:45:28Z")

</div>

I'm working on a beat to pull in GPU/CPU temperature data into Elasticsearch.

My date is correctly parsed from "yyyy'-'MM'-'dd'T'HH':'mm':'ss" into a date time. You can see my original object datetimestamp vs the same data in the discover pane.

My index marks this as a date, and the data is visible within discover, but when I attempt to add it as a time tracking method within a Lens, it shows that it is empty and lists it as an empty field.

I've attempted to search for a solution, but I'm not finding the specific answer. Thank you for your time.

Note: I used Kibana's index template builder to build my index. Here is the JSON from the preview pane:

```auto
{
  "template": {
    "settings": {
      "index": {
        "routing": {
          "allocation": {
            "include": {
              "_tier_preference": "data_content"
            }
          }
        },
        "refresh_interval": "5s",
        "blocks": {
          "read_only_allow_delete": "false"
        },
        "query": {
          "default_field": [
            "computername",
            "ipaddress",
            "cpuname",
            "cputemps.*",
            "gpuname",
            "gputemp",
            "datatimestamp"
          ]
        },
        "priority": "1",
        "number_of_replicas": "1",
        "write": {
          "wait_for_active_shards": "1"
        }
      }
    },
    "mappings": {
      "dynamic_templates": [
        {
          "cputemps.*": {
            "path_match": "cputemps.*",
            "mapping": {
              "type": "double"
            }
          }
        }
      ],
      "runtime": {
        "datetimestamp": {
          "type": "date"
        }
      },
      "properties": {
        "computername": {
          "type": "text"
        },
        "cpuname": {
          "type": "text"
        },
        "gpuname": {
          "type": "text"
        },
        "gputemp": {
          "type": "double"
        },
        "ipaddress": {
          "type": "ip"
        }
      }
    },
    "aliases": {}
  }
}

```

![image](https://us1.discourse-cdn.com/elastic/original/3X/7/8/789d348b5d223e6b3cbc78e69cc030bffe9300fd.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/d/dd80b35f351b9b8484f6d6bf4681f89563fa1139.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/a/3a67930f23bfdd649798a452f1266d9a1a11702d.png)

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [September 3, 2021, 10:08pm UTC](https://discuss.elastic.co/t/date-time-shows-empty-in-lens-but-not-in-discover-pane/283318/2 "2021-09-03T22:08:50Z")

</div>

This is interesting.

Two things for you to check -

1. Can you please make sure this is set as timefield on your index pattern. You can check it here - under index patterns -  

2. How have you set the timepicker on lens page?

 ![Screen Shot 2021-09-03 at 6.08.29 PM](https://us1.discourse-cdn.com/elastic/original/3X/2/9/29333b8635d711754109647f6f35d1a9f26415d6.jpeg)

Thanks,  
Bhavya

---

<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 1, 2021, 10:09pm UTC](https://discuss.elastic.co/t/date-time-shows-empty-in-lens-but-not-in-discover-pane/283318/3 "2021-10-01T22:09:20Z")

</div>

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