Logstash change data in jdbc plugin

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.

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