# Kibana Discover not showing data for any time range

**URL:** <https://discuss.elastic.co/t/kibana-discover-not-showing-data-for-any-time-range/212597>\
**Category:** Kibana\
**Created:** [December 20, 2019, 5:10am UTC](https://discuss.elastic.co/t/kibana-discover-not-showing-data-for-any-time-range/212597 "2019-12-20T05:10:50Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![sharry007](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sharry007](https://discuss.elastic.co/u/sharry007)\
**Post date:** [January 30, 2020, 6:10am UTC](https://discuss.elastic.co/t/kibana-discover-not-showing-data-for-any-time-range/212597/10 "2020-01-30T06:10:02Z")

</div>

I followed this:

> [@Issue with date format change while reindexing](https://discuss.elastic.co/t/issue-with-date-format-change-while-reindexing/169590/10):
>
> The source and destination are in yyyy-mm-dd format so to have a uniform data format we are looking for this change. we do have some other fields with changes in mappings and settings so we would like to do all the changes in one shot by doing reindexing

And I tried to create an ingest pipeline like following for re-indexing:

```
POST _ingest/pipeline/_simulate
{
  "pipeline" :{
  "description": "date pipeline ",
  "processors": [
    {
        "script": {
          "source": """
             SimpleDateFormat format = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss Z");
             ctx._source['@timestamp'] = format.format(format.parse(ctx._source['@timestamp']));
          """
        }
    }
  ]},
  "docs": [
    {
      "_index" : "temp-http",
      "_type" : "_doc",
      "_id" : "ROhMSGgBnWcQaR3FnxJ2",
      "_version" : 2,
      "found" : true,
      "_source" : {
        "response_time" : "175",
        "@timestamp" : "Sun, 13 Jan 2019 17:40:07 GMT"
      }
    }
  ]
}

```

But it gives `"class java.lang.Integer cannot be cast to class java.lang.Long (java.lang.Integer and java.lang.Long are in module java.base of loader 'bootstrap')"`.  
What should I change to make this work?

---

_[View the full topic](https://discuss.elastic.co/t/kibana-discover-not-showing-data-for-any-time-range/212597)._
