# Jdbc input doesn't manage with a date field

**URL:** <https://discuss.elastic.co/t/jdbc-input-doesnt-manage-with-a-date-field/37059>\
**Category:** Logstash\
**Created:** [December 13, 2015, 1:41pm UTC](https://discuss.elastic.co/t/jdbc-input-doesnt-manage-with-a-date-field/37059 "2015-12-13T13:41:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aviv.ratzon](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@aviv.ratzon](https://discuss.elastic.co/u/aviv.ratzon)\
**Post date:** [December 13, 2015, 1:41pm UTC](https://discuss.elastic.co/t/jdbc-input-doesnt-manage-with-a-date-field/37059/1 "2015-12-13T13:41:07Z")

</div>

Hello,  
I'm trying to work with the JDBC plugin so it will only read recently modified events from an Oracle database. this is the configuration I have:

> input {  
> jdbc {  
> jdbc\_driver\_library =\> "ojdbc7.jar"  
> jdbc\_driver\_class =\> "Java::oracle.jdbc.driver.OracleDriver"  
> jdbc\_connection\_string =\> "\*_**"  
> jdbc\_user =\> ""  
> jdbc\_password =\> "**"  
> #schedule =\> "_ \* \* \* \*"  
> statement =\> "SELECT \* FROM BUG WHERE bg\_vts \> :sql\_last\_start"  
> record\_last\_run =\> true  
> }  
> }

When I run it, I get an error saying "not a valid month".  
The column bg\_vts in the database has the format YYYY-MM-dd HH:mm:ss and is not mapped automatically as a date type field (unlike other formats in the database).  
questions:

1. what might be the problem?
2. is there a way to solve it in the input?
3. is there a way maybe to do the date filtering in the output? (using the last\_start paramater and the bg\_vts after a date filter)

thank you bery much!  
Aviv

---

<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:** [July 6, 2017, 5:18am UTC](https://discuss.elastic.co/t/jdbc-input-doesnt-manage-with-a-date-field/37059/2 "2017-07-06T05:18:42Z")

</div>


