# How can I change the @timestamp match my timestamp?

**URL:** <https://discuss.elastic.co/t/how-can-i-change-the-timestamp-match-my-timestamp/48005>\
**Category:** Logstash\
**Created:** [April 21, 2016, 8:49am UTC](https://discuss.elastic.co/t/how-can-i-change-the-timestamp-match-my-timestamp/48005 "2016-04-21T08:49:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattcrawfoord](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@mattcrawfoord](https://discuss.elastic.co/u/mattcrawfoord)\
**Post date:** [April 21, 2016, 8:49am UTC](https://discuss.elastic.co/t/how-can-i-change-the-timestamp-match-my-timestamp/48005/1 "2016-04-21T08:49:21Z")

</div>

I found that the @timestamp always show UTC time,  
i tried to using date filter to match my timezone ("Asia/Shanghai")  
timestamp as follows,

> "@timestamp" =\> "2016-04-21T08:39:35.884Z"

my date filter ,

```
 date {
       match => ["timestamp" , "yyyy-mm-dd'T'HH:MM:ss'Z' +0800"]
       timezone => "UTC"
 }

```

but the date filter seems not working ,  
any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 21, 2016, 9:34am UTC](https://discuss.elastic.co/t/how-can-i-change-the-timestamp-match-my-timestamp/48005/2 "2016-04-21T09:34:08Z")

</div>

The `@timestamp` field is supposed to be in UTC. Do not attempt to change this. It's up to the presentation layer (e.g. Kibana) to make timezone adjustments as necessary.

---

<div class="post-metadata">

**Author:** ![mattcrawfoord](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@mattcrawfoord](https://discuss.elastic.co/u/mattcrawfoord)\
**Post date:** [April 21, 2016, 11:28am UTC](https://discuss.elastic.co/t/how-can-i-change-the-timestamp-match-my-timestamp/48005/3 "2016-04-21T11:28:30Z")

</div>

But Logstash generates indexes based on @timestamp with UTC time,  
if I can change the @timestamp to my timezone direct, I think I can directly  
search the index.  
can I trick Logstash by setting the timezone of the date filter to UTC?  
but the date filter seems not working ,what's wrong with it?

---

<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 6, 2017, 5:01am UTC](https://discuss.elastic.co/t/how-can-i-change-the-timestamp-match-my-timestamp/48005/4 "2017-07-06T05:01:18Z")

</div>


