# CSV Date column replace to timestamp

**URL:** <https://discuss.elastic.co/t/csv-date-column-replace-to-timestamp/226560>\
**Category:** Logstash\
**Created:** [April 5, 2020, 9:48am UTC](https://discuss.elastic.co/t/csv-date-column-replace-to-timestamp/226560 "2020-04-05T09:48:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lohit18](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lohit18/32/64131_2.png) [@lohit18](https://discuss.elastic.co/u/lohit18)\
**Post date:** [April 5, 2020, 9:48am UTC](https://discuss.elastic.co/t/csv-date-column-replace-to-timestamp/226560/1 "2020-04-05T09:48:06Z")

</div>

Dear Team,

Kindly help me out how to repalce with CSV date format(3/27/2020 18:01 PM) with logstash timestamp .

I am passing .conf like this below

input {

file {  
path=\>"C:Downloads/low\_data.csv"  
start\_position=\>"beginning"  
sincedb\_path =\> "NUL"  
}  
}  
filter {

```
csv {
    separator => ","
	columns => ["PAB","POT","PBT"]
}
 **date {**

```

\*\* match =\> ["Local\_Time", "MM/dd/yyyy HH:mm:ss aa"]\*\*

```
	}
	 mutate {convert => ["PAB", "float"]}
	 mutate {convert => ["POT", "float"]}
	 mutate {convert => ["PBT", "float"]}
	
  }

```

output{  
elasticsearch{  
hosts=\>["localhost:9200"]  
index=\>"data"  
}  
stdout{codec=\> rubydebug }  
}

---

<div class="post-metadata">

**Author:** ![lohit18](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lohit18/32/64131_2.png) [@lohit18](https://discuss.elastic.co/u/lohit18)\
**Post date:** [April 5, 2020, 10:05am UTC](https://discuss.elastic.co/t/csv-date-column-replace-to-timestamp/226560/2 "2020-04-05T10:05:14Z")

</div>

Dear @Badger,

kindly provide solution for the above problem from your end.

Regards,

---

<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:** [May 3, 2020, 10:05am UTC](https://discuss.elastic.co/t/csv-date-column-replace-to-timestamp/226560/3 "2020-05-03T10:05:15Z")

</div>

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