# Assigning the date in a CSV column to the timestamp

**URL:** <https://discuss.elastic.co/t/assigning-the-date-in-a-csv-column-to-the-timestamp/142727>\
**Category:** Logstash\
**Created:** [August 2, 2018, 9:23am UTC](https://discuss.elastic.co/t/assigning-the-date-in-a-csv-column-to-the-timestamp/142727 "2018-08-02T09:23:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kolli\_dilip](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kolli_dilip/32/33821_2.png) [@kolli\_dilip](https://discuss.elastic.co/u/kolli_dilip)\
**Post date:** [August 2, 2018, 9:23am UTC](https://discuss.elastic.co/t/assigning-the-date-in-a-csv-column-to-the-timestamp/142727/1 "2018-08-02T09:23:54Z")

</div>

Hi All,

Need assistance in assigning the date in a CSV column to the timestamp

The sample set of the field is as below

![image](https://us1.discourse-cdn.com/elastic/original/3X/5/0/503f2ce26849093c9e9a1e715e100f09fafc8c0c.png)

The config used is as below

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

and the output is as below in stdout console, where the data is not assigned to the timestamp, ans its picking the time the data is getting indexed.

![image](https://us1.discourse-cdn.com/elastic/original/3X/6/f/6fbe17802886e4bd7c49ae65a69aa31f9db1931a.png)

Thanks in Advance

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 2, 2018, 9:42am UTC](https://discuss.elastic.co/t/assigning-the-date-in-a-csv-column-to-the-timestamp/142727/2 "2018-08-02T09:42:39Z")

</div>

The `Time Closed` field includes the time but your date pattern doesn't.

---

<div class="post-metadata">

**Author:** ![kolli\_dilip](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kolli_dilip/32/33821_2.png) [@kolli\_dilip](https://discuss.elastic.co/u/kolli_dilip)\
**Post date:** [August 2, 2018, 9:48am UTC](https://discuss.elastic.co/t/assigning-the-date-in-a-csv-column-to-the-timestamp/142727/3 "2018-08-02T09:48:03Z")

</div>

so i need to add HH:mm to the existing date format is it

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 2, 2018, 9:55am UTC](https://discuss.elastic.co/t/assigning-the-date-in-a-csv-column-to-the-timestamp/142727/4 "2018-08-02T09:55:20Z")

</div>

Yes.

---

<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:** [August 30, 2018, 9:55am UTC](https://discuss.elastic.co/t/assigning-the-date-in-a-csv-column-to-the-timestamp/142727/5 "2018-08-30T09:55:27Z")

</div>

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