# While reindexing a index, I have empty date fields, date parse error?

**URL:** <https://discuss.elastic.co/t/while-reindexing-a-index-i-have-empty-date-fields-date-parse-error/284868>\
**Category:** Logstash\
**Created:** [September 22, 2021, 12:42pm UTC](https://discuss.elastic.co/t/while-reindexing-a-index-i-have-empty-date-fields-date-parse-error/284868 "2021-09-22T12:42:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![padamrai](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@padamrai](https://discuss.elastic.co/u/padamrai)\
**Post date:** [September 22, 2021, 12:42pm UTC](https://discuss.elastic.co/t/while-reindexing-a-index-i-have-empty-date-fields-date-parse-error/284868/1 "2021-09-22T12:42:11Z")

</div>

Hello Everyone,

While reindexing the index from one server to another, I have three date fields except timestamps. Some fields are empty. Due to empty fields I am getting a date parser exception I want it ignore empty date fields and process the data.

```auto
POST _reindex
{
  "source": {
    "remote": {
      "host": "http://xxx.xxx.xxx.xxx:1992",
      "username": "user1111",
      "password": "xxxxxxxxxxxxxx"
    },
    "index": "final_inter_sms",
    "query":
      {
        "match_all": {}
      }
  },
  "dest": {
    "index": "international_sms"
  }
}

```

How I can update above script query to get What I want. Is there any way to ingore this parser error and fetch all records from one server to another?

---

<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 20, 2021, 12:42pm UTC](https://discuss.elastic.co/t/while-reindexing-a-index-i-have-empty-date-fields-date-parse-error/284868/2 "2021-10-20T12:42:58Z")

</div>

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