# Logstash does not parse date when ingesting data

**URL:** <https://discuss.elastic.co/t/logstash-does-not-parse-date-when-ingesting-data/235106>\
**Category:** Logstash\
**Created:** [June 1, 2020, 3:28am UTC](https://discuss.elastic.co/t/logstash-does-not-parse-date-when-ingesting-data/235106 "2020-06-01T03:28:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raniceyue](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@raniceyue](https://discuss.elastic.co/u/raniceyue)\
**Post date:** [June 1, 2020, 3:28am UTC](https://discuss.elastic.co/t/logstash-does-not-parse-date-when-ingesting-data/235106/1 "2020-06-01T03:28:39Z")

</div>

I have a large CSV file with many columns, and when I first ingested it into elasticsearch, everything worked fine, and all the dates that I specified in the date filters were parsed properly.

However after adding 3 columns of data into the CSV file, for some reason when I tried to ingest the data again, Logstash was unable to parse the dates.

P.S All the dates I have in the CSV are formatted to short date.

Here is my config file:

```auto
    filter {
    	csv {
    		separator => ","
    		autodetect_column_names => "false"
    		autogenerate_column_names => "true"
    		skip_empty_columns => "true"
    		columns => ["Data Type", ... a bunch of other columns defined]
    	}

        /*Date filters for all date fields in the exact same format*/

    	date {
    		match => ["EOSL_its_end_of_support_hw", "MM/dd/YYYY"]
    		target => "EOSL_its_end_of_support_hw"
    	}
... Config file continues

```

Is there something wrong with my config file that I am missing?

---

<div class="post-metadata">

**Author:** ![chitreshg](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@chitreshg](https://discuss.elastic.co/u/chitreshg)\
**Post date:** [June 1, 2020, 11:25am UTC](https://discuss.elastic.co/t/logstash-does-not-parse-date-when-ingesting-data/235106/2 "2020-06-01T11:25:30Z")

</div>

can you show your new data sample which you are adding into CVS file.

---

<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:** [June 29, 2020, 11:25am UTC](https://discuss.elastic.co/t/logstash-does-not-parse-date-when-ingesting-data/235106/3 "2020-06-29T11:25:33Z")

</div>

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