# Date Issue in EL

**URL:** <https://discuss.elastic.co/t/date-issue-in-el/80736>\
**Category:** Logstash\
**Created:** [March 30, 2017, 7:36pm UTC](https://discuss.elastic.co/t/date-issue-in-el/80736 "2017-03-30T19:36:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![suneesh](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@suneesh](https://discuss.elastic.co/u/suneesh)\
**Post date:** [March 30, 2017, 7:36pm UTC](https://discuss.elastic.co/t/date-issue-in-el/80736/1 "2017-03-30T19:36:58Z")

</div>

While loading data from table in oracle to EL Search, date column in oracle is stored as string EL Search . how do I fix this.  
select.sql=SELECT \* FROM us\_wm\_space.planogram\_view\_log

```
   input {
      jdbc {
        jdbc_driver_library => "/home/app/oracle_jdbc/ojdbc6-11.2.0.3.0.jar"
        jdbc_driver_class => "Java::oracle.jdbc.driver.OracleDriver"
        jdbc_connection_string => "jdbc:oracle:thin:@//88888888:1526/spusxprd_service"
        jdbc_user => " *********"
        jdbc_password => " ************"
        # will execute on the 0th minute of every hour every day
        # schedule => "0 * * * *"
        statement_filepath => "select.sql"
        #jdbc_paging_enabled => "true"
        #jdbc_page_size => "1"
      }

```

}

output {  
elasticsearch {  
protocol =\> http  
index =\>"planogramviews"  
document\_type =\> "planogramview"  
document\_id =\> "%{planogram\_id},%{store\_nbr},%{view\_ts}"  
host =\> "10.117.144.227"

```
    }

```

}

Any help is apprecaited

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 31, 2017, 7:08am UTC](https://discuss.elastic.co/t/date-issue-in-el/80736/2 "2017-03-31T07:08:18Z")

</div>

Perhaps you should use a date filter to parse the field into an ISO8601 that ES will recognize as a date? Or modify the query to format the column in a way that ES recognizes as a date?

---

<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 28, 2017, 7:08am UTC](https://discuss.elastic.co/t/date-issue-in-el/80736/3 "2017-04-28T07:08:22Z")

</div>

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