# Logstash sql\_last\_value to eastern timestamp

**URL:** https://discuss.elastic.co/t/logstash-sql-last-value-to-eastern-timestamp/99758
**Category:** Logstash
**Created:** [September 7, 2017, 6:55pm UTC](https://discuss.elastic.co/t/logstash-sql-last-value-to-eastern-timestamp/99758 "2017-09-07T18:55:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![swaplogstash](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@swaplogstash](https://discuss.elastic.co/u/swaplogstash)
#### Post date: [September 7, 2017, 6:55pm UTC](https://discuss.elastic.co/t/logstash-sql-last-value-to-eastern-timestamp/99758/1 "2017-09-07T18:55:33Z")

</div>

Our database has date field with datatype as TIMESTAMP and its eastern time (ex:05-SEP-17 10.00.00.209000000 AM)  
and logstash sql\_last\_value has UTC(ex: 2017-09-07 18:40:00.205000000 Z). How can we convert sql\_last\_value to  
eastern time for comparison in jdbc plugin ? Is there a way to customize logstash to use local timezone(eastern)  
so that we dont need to typecast in SQL query.

---

<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: [October 5, 2017, 6:56pm UTC](https://discuss.elastic.co/t/logstash-sql-last-value-to-eastern-timestamp/99758/2 "2017-10-05T18:56:12Z")

</div>

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