# Timestamp changes in logstash input?

**URL:** <https://discuss.elastic.co/t/timestamp-changes-in-logstash-input/280027>\
**Category:** Logstash\
**Created:** [July 30, 2021, 4:28am UTC](https://discuss.elastic.co/t/timestamp-changes-in-logstash-input/280027 "2021-07-30T04:28:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jclemons7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jclemons7/32/20655_2.png) [@jclemons7](https://discuss.elastic.co/u/jclemons7)\
**Post date:** [July 30, 2021, 4:28am UTC](https://discuss.elastic.co/t/timestamp-changes-in-logstash-input/280027/1 "2021-07-30T04:28:37Z")

</div>

Hello all,

I have had this index going for like at least the last 2 years.. and all of a sudden the timezone seems to not be working correctly. The pipeline has some transforms in it, but nothing touches the @timestamp in the existing logic. It's really as simple as this...

```auto
input
{
	udp
	{
		port => 514
		codec => plain {charset => "ISO-8859-1"}
	}
}

output
{
	elasticsearch
	{
		hosts => ["http://localhost:9200"]
		index => "syslog-%{+YYYY.MM.dd}"
		document_id => "%{[fingerprint]}"	
	}
}

```

In this scenario, I get an @timestamp in UTC... and my Kibana setting is set to "Browser"

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/9/e99129ff8ba28ee8a995ccbb5fe7c584dcaa883e.png)

However, when I go into Discover, all the data is in the future (I'm in AZ)... so, I figured something had changed in Logstash or Kibana, or maybe Elasticsearch so I added the following filter in my pipeline (which I know is a bad idea).

```auto
filter 
{
	ruby {code => 'event.set("@timestamp", LogStash::Timestamp.new(event.get("@timestamp")-25200))'}
}

```

Which fixes the problem.. **UNTIL** the index rolls over.. then it happens again. I'm so confused.. where is the problem? Does it have something to do with the template.. or what?

---

<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:** [August 27, 2021, 4:29am UTC](https://discuss.elastic.co/t/timestamp-changes-in-logstash-input/280027/2 "2021-08-27T04:29:14Z")

</div>

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