# Need help in extracting time fields from the timestamp field

**URL:** <https://discuss.elastic.co/t/need-help-in-extracting-time-fields-from-the-timestamp-field/54230>\
**Category:** Elasticsearch\
**Created:** [June 29, 2016, 5:07am UTC](https://discuss.elastic.co/t/need-help-in-extracting-time-fields-from-the-timestamp-field/54230 "2016-06-29T05:07:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pvignesh92](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@pvignesh92](https://discuss.elastic.co/u/pvignesh92)\
**Post date:** [June 29, 2016, 5:07am UTC](https://discuss.elastic.co/t/need-help-in-extracting-time-fields-from-the-timestamp-field/54230/1 "2016-06-29T05:07:39Z")

</div>

I have data which contains Job start time ( ex. June 28th 2016, 13:30:48.000).

We have a requirement to split the time alone and then add it as a separate field in elasticsearch. Any idea how we can do this in elasticsearch / logstash.

Thanks

---

<div class="post-metadata">

**Author:** ![noemie](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@noemie](https://discuss.elastic.co/u/noemie)\
**Post date:** [June 29, 2016, 6:09am UTC](https://discuss.elastic.co/t/need-help-in-extracting-time-fields-from-the-timestamp-field/54230/2 "2016-06-29T06:09:57Z")

</div>

Hello,

maybe by using a grok on this field with the "," as a separator. If the grok filter succeed, you will have two fields: one with the day, one with the hour.

---

<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:** [July 5, 2017, 10:39pm UTC](https://discuss.elastic.co/t/need-help-in-extracting-time-fields-from-the-timestamp-field/54230/3 "2017-07-05T22:39:46Z")

</div>

Closed on July 5, 2017, 10:39pm UTC


