# Stdout timestamp in logstash

**URL:** https://discuss.elastic.co/t/stdout-timestamp-in-logstash/24551
**Category:** Logstash
**Created:** [June 29, 2015, 1:18pm UTC](https://discuss.elastic.co/t/stdout-timestamp-in-logstash/24551 "2015-06-29T13:18:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Lee\_PS](https://avatars.discourse-cdn.com/v4/letter/l/65b543/32.png) [@Lee\_PS](https://discuss.elastic.co/u/Lee_PS)
#### Post date: [June 29, 2015, 1:18pm UTC](https://discuss.elastic.co/t/stdout-timestamp-in-logstash/24551/1 "2015-06-29T13:18:27Z")

</div>

Hi

I would like to know about the timestamp for the logstash output

simple conf file

input { stdin {}}  
output {  
stdout { codec =\> rubydebug }

}

[lee@server1 logstash-1.5.0]$ bin/logstash -f logstash-simple.conf  
Logstash startup completed  
ACCESS  
{  
"message" =\> "ACCESS",  
"@version" =\> "1",  
**"@timestamp" =\> "2015-06-29T13:10:55.276Z",**  
"host" =\> "[server1.corp.com](http://server1.corp.com)"  
}

I would like to know about this timestamp value

My server date and time  
**Mon Jun 29 15:10:55 CEST 2015**  
In timestamp  
2015-06-29T13:10:55.276Z

The actual server time was 2015-06-2915:10 but in my output i could see the timestamp value is 2hrs behind. if i need to get my server timestamp. where i need to check and change .

Could anyone please suggest on this

Regards  
lee

---

<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: [June 29, 2015, 1:38pm UTC](https://discuss.elastic.co/t/stdout-timestamp-in-logstash/24551/2 "2015-06-29T13:38:12Z")

</div>

The `@timestamp` field is in UTC, as you can see from the "Z" suffix. Since you're apparently in UTC+2 the two-hour difference is expected.

---

<div class="post-metadata">

### Author: ![Lee\_PS](https://avatars.discourse-cdn.com/v4/letter/l/65b543/32.png) [@Lee\_PS](https://discuss.elastic.co/u/Lee_PS)
#### Post date: [June 29, 2015, 1:40pm UTC](https://discuss.elastic.co/t/stdout-timestamp-in-logstash/24551/3 "2015-06-29T13:40:50Z")

</div>

Ok .Thank you for the quick reply

is there anyway i can display @timestamp field same as my servertime value?

---

<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: [June 29, 2015, 1:45pm UTC](https://discuss.elastic.co/t/stdout-timestamp-in-logstash/24551/4 "2015-06-29T13:45:58Z")

</div>

That's up to your display layer. Kibana does this for you automatically based on the browser's timezone. The `@timestamp` field itself is by definition UTC.

---

<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:36am UTC](https://discuss.elastic.co/t/stdout-timestamp-in-logstash/24551/5 "2017-07-06T05:36:08Z")

</div>


