# Logstash change data in jdbc plugin

**URL:** <https://discuss.elastic.co/t/logstash-change-data-in-jdbc-plugin/169352>\
**Category:** Logstash\
**Created:** [February 21, 2019, 9:02am UTC](https://discuss.elastic.co/t/logstash-change-data-in-jdbc-plugin/169352 "2019-02-21T09:02:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahere37](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sahere37](https://discuss.elastic.co/u/sahere37)\
**Post date:** [February 21, 2019, 9:02am UTC](https://discuss.elastic.co/t/logstash-change-data-in-jdbc-plugin/169352/1 "2019-02-21T09:02:58Z")

</div>

hi all

i am using logstash jdbc plugin to ship data from sql server database to elasticsearch using following:

```
input {
 jdbc {
    jdbc_driver_library => "F:\driver\sqljdbc_6.0\enu\jre8\sqljdbc42.jar"
    jdbc_driver_class => "com.microsoft.sqlserver.jdbc.SQLServerDriver"
    jdbc_connection_string => "jdbc:sqlserver://local:5453;databaseName=TotalTXN"
    jdbc_user => "sss"
    jdbc_password => "sss123"
    schedule => "* * * * *"
	clean_run => "true"
    statement => "SELECT MAX(Date) FROM dbo.TotalTxn_Control"
     }
}
output {
  elasticsearch { 
    hosts => ["http://192.168.170.153:9200"]
    index => "mssql3-%{+yyyy.MM.dd}"
    user => "logstash_internal25"
    password => "x-pack-test-password"
 }
  stdout { codec => rubydebug }
}

```

the data in Date is as 1390/02/01 but in kibana the result of Date is showing as February 1th 1390, but I want to show data as 1390/02/01, can i handle this issue?

Also is it possible to save 1390/02/01 (as the same format) in sql\_last\_value?

any advice will be so appreciated. thanks.

---

<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:** [March 21, 2019, 9:03am UTC](https://discuss.elastic.co/t/logstash-change-data-in-jdbc-plugin/169352/2 "2019-03-21T09:03:00Z")

</div>

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