# Timestamp can't be replaced

**URL:** <https://community.graylog.org/t/timestamp-cant-be-replaced/12921>\
**Category:** Graylog Central (peer support)\
**Created:** [November 25, 2019, 3:39pm UTC](https://community.graylog.org/t/timestamp-cant-be-replaced/12921 "2019-11-25T15:39:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenglin](https://avatars.discourse-cdn.com/v4/letter/c/ad7895/32.png) [@chenglin](https://community.graylog.org/u/chenglin)\
**Post date:** [November 25, 2019, 3:39pm UTC](https://community.graylog.org/t/timestamp-cant-be-replaced/12921/1 "2019-11-25T15:39:06Z")

</div>

when I want to use pipeline to change the original one, then I can’t receive my logs.

> rule “change\_timezone”  
> when  
> has\_field(“timestamp”)  
> then  
> let result = regex(“^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3})”, to\_string($message.timestamp));  
> let ori\_date = parse\_date(to\_string(result[“0”]), “yyyy-MM-dd’T’HH:mm:ss.SSS”);  
> let now\_date = parse\_date(to\_string(result[“0”]), “yyyy-MM-dd’T’HH:mm:ss.SSS”, “en\_US”, “Asia/Qatar”);  
> set\_field(“ori\_date”, ori\_date);  
> set\_field(“timestamp”, now\_date);  
> end

If I write like this, I won’t see any new logs in my dashboard any more.  
If I change the field timestamp to another new field. For example like set\_field(“new\_date”, new\_date);  
I can see the new logs, but the timestamp can’t be changed.

---

<div class="post-metadata">

**Author:** ![chenglin](https://avatars.discourse-cdn.com/v4/letter/c/ad7895/32.png) [@chenglin](https://community.graylog.org/u/chenglin)\
**Post date:** [November 26, 2019, 8:53am UTC](https://community.graylog.org/t/timestamp-cant-be-replaced/12921/2 "2019-11-26T08:53:31Z")

</div>

Today I logged in to my graylog server again, and everything worked just fine.  
It’s so weird, I really tried a lot of times yesterday.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [December 10, 2019, 8:53am UTC](https://community.graylog.org/t/timestamp-cant-be-replaced/12921/3 "2019-12-10T08:53:39Z")

</div>

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