# How to convert Unix/Epoch time to dateTime in Data Prepper

**URL:** <https://forum.opensearch.org/t/how-to-convert-unix-epoch-time-to-datetime-in-data-prepper/21038>\
**Category:** Data Prepper\
**Created:** [August 30, 2024, 6:54pm UTC](https://forum.opensearch.org/t/how-to-convert-unix-epoch-time-to-datetime-in-data-prepper/21038 "2024-08-30T18:54:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![curlquest](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@curlquest](https://forum.opensearch.org/u/curlquest)\
**Post date:** [August 30, 2024, 6:54pm UTC](https://forum.opensearch.org/t/how-to-convert-unix-epoch-time-to-datetime-in-data-prepper/21038/1 "2024-08-30T18:54:41Z")

</div>

How would I do this with the date processor in Data Prepper?

This is what I am trying to do with the VPC flow logs:  
- date:  
match:  
- key: start  
patterns: [“epoch\_second”]  
destination: “@timestamp”  
output\_format: “yyyy-MM-dd’T’HH:mm:ss”

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [October 29, 2024, 6:55pm UTC](https://forum.opensearch.org/t/how-to-convert-unix-epoch-time-to-datetime-in-data-prepper/21038/2 "2024-10-29T18:55:15Z")

</div>

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