# Change value of @timestamp

**URL:** <https://discuss.elastic.co/t/change-value-of-timestamp/274343>\
**Category:** Logstash\
**Created:** [May 28, 2021, 1:00pm UTC](https://discuss.elastic.co/t/change-value-of-timestamp/274343 "2021-05-28T13:00:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mar-ro](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@mar-ro](https://discuss.elastic.co/u/mar-ro)\
**Post date:** [May 28, 2021, 1:00pm UTC](https://discuss.elastic.co/t/change-value-of-timestamp/274343/1 "2021-05-28T13:00:07Z")

</div>

Hello!  
How can I remplace the value of @timestamp with the value that I get with a regular expresion?  
I need change the value of @timestamp because when the data is indexed in elasticsearch it shows in this field the value when the data was indexed instead of when data was logged in the file.  
Thank you!

---

<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:** [May 28, 2021, 4:58pm UTC](https://discuss.elastic.co/t/change-value-of-timestamp/274343/2 "2021-05-28T16:58:50Z")

</div>

Use a [date](https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html) filter.

---

<div class="post-metadata">

**Author:** ![mar-ro](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@mar-ro](https://discuss.elastic.co/u/mar-ro)\
**Post date:** [June 1, 2021, 9:33am UTC](https://discuss.elastic.co/t/change-value-of-timestamp/274343/3 "2021-06-01T09:33:29Z")

</div>

Thank you !

---

<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:** [June 29, 2021, 9:34am UTC](https://discuss.elastic.co/t/change-value-of-timestamp/274343/4 "2021-06-29T09:34:10Z")

</div>

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