# Unable to Change Timezone

**URL:** https://discuss.elastic.co/t/unable-to-change-timezone/197158
**Category:** Logstash
**Created:** [August 28, 2019, 3:43pm UTC](https://discuss.elastic.co/t/unable-to-change-timezone/197158 "2019-08-28T15:43:43Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![MR551](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@MR551](https://discuss.elastic.co/u/MR551)
#### Post date: [August 28, 2019, 3:43pm UTC](https://discuss.elastic.co/t/unable-to-change-timezone/197158/1 "2019-08-28T15:43:44Z")

</div>

Hello,  
Trying to configure logstash to ingest error logs into elastic from a txt file, so far its working and data gets delivered into elastic, but the date plugin won't get convert it to Eastern time.

Sample error from txt, note first field is what i am parsing and its already Eastern timezone...

# 

2019-08-19 06:08:10 Local4.Warning xxx.xx.xxx.xxx Aug 19 2019 05:04:04: Doesn't have a proposal specified

# 

My logstash config for the filter plugin

filter {   
csv {  
columns =\> ["ErrorDate", "ErrorType", "ASA\_IP", "ErrorText"]  
separator =\> " "  
}

```
date {
	match => ["ErrorDate", "yyyy-MM-dd HH:mm:ss"]
	timezone => "EST"
	target => "ErrorDate"		
}
mutate {
    remove_field => ["@timestamp","host","message","path","@version"]
  }

```

}

"ErrorDate" gets converted to UTC and wont change

Can't figure out what i am doing wrong in my filter, any input is appreciated.  
Thank you.

---

<div class="post-metadata">

### Author: ![naveenrt23](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@naveenrt23](https://discuss.elastic.co/u/naveenrt23)
#### Post date: [August 28, 2019, 3:50pm UTC](https://discuss.elastic.co/t/unable-to-change-timezone/197158/2 "2019-08-28T15:50:53Z")

</div>

I think this might help you.

A date filter _always_ converts to UTC. The timezone option is used to tell what timezone it is converting _from_ , i.e. the name of your local timezone

---

<div class="post-metadata">

### Author: ![MR551](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@MR551](https://discuss.elastic.co/u/MR551)
#### Post date: [August 28, 2019, 4:03pm UTC](https://discuss.elastic.co/t/unable-to-change-timezone/197158/3 "2019-08-28T16:03:36Z")

</div>

Ok, is there a way to convert back to timezone i want?

---

<div class="post-metadata">

### Author: ![naveenrt23](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@naveenrt23](https://discuss.elastic.co/u/naveenrt23)
#### Post date: [August 28, 2019, 4:04pm UTC](https://discuss.elastic.co/t/unable-to-change-timezone/197158/4 "2019-08-28T16:04:22Z")

</div>

I am not sure..There might be a way but i'm not aware of it.

This might be helpful [https://stackoverflow.com/questions/29302444/convert-timestamp-timezone-in-logstash-for-output-index-name](https://stackoverflow.com/questions/29302444/convert-timestamp-timezone-in-logstash-for-output-index-name)

---

<div class="post-metadata">

### Author: ![MR551](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@MR551](https://discuss.elastic.co/u/MR551)
#### Post date: [August 28, 2019, 4:45pm UTC](https://discuss.elastic.co/t/unable-to-change-timezone/197158/5 "2019-08-28T16:45:38Z")

</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: [September 25, 2019, 4:45pm UTC](https://discuss.elastic.co/t/unable-to-change-timezone/197158/6 "2019-09-25T16:45:43Z")

</div>

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