# Jdbc Static Loader Schedule Giving Error

**URL:** <https://discuss.elastic.co/t/jdbc-static-loader-schedule-giving-error/135905>\
**Category:** Logstash\
**Created:** [June 14, 2018, 11:21am UTC](https://discuss.elastic.co/t/jdbc-static-loader-schedule-giving-error/135905 "2018-06-14T11:21:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MariumHassan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mariumhassan/32/30321_2.png) [@MariumHassan](https://discuss.elastic.co/u/MariumHassan)\
**Post date:** [June 14, 2018, 11:21am UTC](https://discuss.elastic.co/t/jdbc-static-loader-schedule-giving-error/135905/1 "2018-06-14T11:21:39Z")

</div>

Hi,

I am getting an error when I try to add loader\_schedule setting in my configuration file. The script works fine without this setting but adding this gives me an error shown below:

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/1/b/1b83bdfce274239ecf68a81e608b18cae469f321.PNG)

Following is my configuration:

```auto
    if [jdbcFlag]
    {
      jdbc_static 
       {
        loaders => 
        [
          {
            id => "remote-customers"
            query => "some query here"
            local_table => "customers"
          }
        ]
        local_db_objects => 
        [
          {
            name => "customers"
            index_columns => ["ID"]
            columns => 
            [
              ["ID", "varchar(10)"]
            ]
          }
        ]
        local_lookups => 
        [
          {
            id => "local-customers"
            query => "some query here"
            target => "customer"
          }
        ]
        remove_field => ["customer"]
        remove_field => ["jdbcFlag"]
		
	    loader_schedule => "* */2 * * *" # run loaders every 2 hours
        jdbc_user => "user"
        jdbc_password => "password"
        jdbc_driver_class => "com.ibm.db2.jcc.DB2Driver"
        jdbc_connection_string => "db connection url here"
      }
    } 

```

I could not seem to understand how am I giving the wrong value?

Any help will be appreciated.  
Thanks in anticipation!

---

<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 12, 2018, 11:21am UTC](https://discuss.elastic.co/t/jdbc-static-loader-schedule-giving-error/135905/2 "2018-07-12T11:21:55Z")

</div>

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