# Possbile to store date timezone into elasticsearch via logstash output plugin..?

**URL:** <https://discuss.elastic.co/t/possbile-to-store-date-timezone-into-elasticsearch-via-logstash-output-plugin/171799>\
**Category:** Logstash\
**Created:** [March 11, 2019, 3:56pm UTC](https://discuss.elastic.co/t/possbile-to-store-date-timezone-into-elasticsearch-via-logstash-output-plugin/171799 "2019-03-11T15:56:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raulk89](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@raulk89](https://discuss.elastic.co/u/raulk89)\
**Post date:** [March 11, 2019, 3:56pm UTC](https://discuss.elastic.co/t/possbile-to-store-date-timezone-into-elasticsearch-via-logstash-output-plugin/171799/1 "2019-03-11T15:56:18Z")

</div>

Hi

Elastic, kibana, logtash - 6.6.1  
Centos 7.6

Have I understood correctly, that all the date column data that are stored to elasticsearch, these are stored as UTC time..?  
_(Meaning, when elasticsearch has stored a value "2019-03-11 15:00:00", then this is always UTC time..?)_

If, so, can I somehow store some other timezone data to elasticsearch..?  
I am asking because, what if I have a value in database stored as UTC+2h, and using logstash, I want to store this data to elasticsearch.

Regards  
Raul

---

<div class="post-metadata">

**Author:** ![kharvey](https://avatars.discourse-cdn.com/v4/letter/k/d07c76/32.png) [@kharvey](https://discuss.elastic.co/u/kharvey)\
**Post date:** [March 11, 2019, 4:12pm UTC](https://discuss.elastic.co/t/possbile-to-store-date-timezone-into-elasticsearch-via-logstash-output-plugin/171799/2 "2019-03-11T16:12:08Z")

</div>

You can try using the date filter in logstash and add a timezone to that.

> **[Date filter plugin | Logstash Reference \[8.11\] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html#plugins-filters-date-timezone)**

Also, you may try taking a look at this thread to see if it answers your question as well.

> [@How to set @timestamp timezone?](https://discuss.elastic.co/t/how-to-set-timestamp-timezone/28401/17):
>
> Hi, magnusbaeck if I just want to change the @timestamp field, what should I do? the following is my log format: 2016-01-15 09:33:23,650 INFO [127.0.0.1:57799 http-bio-8080-exec-10] com.ins.car.controller.CarOrderController.getInsResult(CarOrderController.java:62) - 2016-01-15 17:33:23,458 getInsResultServlet {....} as you see, there is two times, 2016-01-15 09:33:23,650 and 2016-01-15 17:33:23,458, the first one is %{+yyyy-MM-dd HH:mm:ss,SSS}, the second one comes from the source message

---

<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:** [April 8, 2019, 4:12pm UTC](https://discuss.elastic.co/t/possbile-to-store-date-timezone-into-elasticsearch-via-logstash-output-plugin/171799/3 "2019-04-08T16:12:16Z")

</div>

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