# How to extract the time stamp from

**URL:** <https://discuss.elastic.co/t/how-to-extract-the-time-stamp-from/348741>\
**Category:** Logstash\
**Created:** [December 6, 2023, 4:18pm UTC](https://discuss.elastic.co/t/how-to-extract-the-time-stamp-from/348741 "2023-12-06T16:18:42Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [January 10, 2024, 5:24pm UTC](https://discuss.elastic.co/t/how-to-extract-the-time-stamp-from/348741/22 "2024-01-10T17:24:43Z")

</div>

If [my\_time] is a string you can use `mutate { gsub => ["my_time", "Z$", ""] }`.

---

<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:** [February 7, 2024, 5:25pm UTC](https://discuss.elastic.co/t/how-to-extract-the-time-stamp-from/348741/23 "2024-02-07T17:25:05Z")

</div>

Closed on February 7, 2024, 5:25pm UTC

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

[Previous page](https://discuss.elastic.co/t/how-to-extract-the-time-stamp-from/348741.md?page=1)
