# Can I add a month variable to the table name?

**URL:** <https://discuss.elastic.co/t/can-i-add-a-month-variable-to-the-table-name/232339>\
**Category:** Logstash\
**Created:** [May 13, 2020, 2:02am UTC](https://discuss.elastic.co/t/can-i-add-a-month-variable-to-the-table-name/232339 "2020-05-13T02:02:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![111335](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111335/32/68202_2.png) [@111335](https://discuss.elastic.co/u/111335)\
**Post date:** [May 13, 2020, 2:02am UTC](https://discuss.elastic.co/t/can-i-add-a-month-variable-to-the-table-name/232339/1 "2020-05-13T02:02:01Z")

</div>

Hello.

I want to put a specific variable in the table.

Looking at the topic, it can be solved through `statement_filepath`.  
I am not sure how.

Here is what I want:

```auto
${mmm} : jan, feb, mar, apr, may ...., dec

input {
  jdbc {
    jdbc_driver_library => "C:\tools\mysql\connector\mysql-connector-java-5.1.44.jar"
    jdbc_driver_class => "com.mysql.jdbc.Driver"
    jdbc_connection_string => " ****"
    jdbc_user => " ****"
    jdbc_password => " ****"
    jdbc_paging_enabled => true
    tracking_column => "unix_ts_in_secs"
    use_column_value => true
    tracking_column_type => "numeric"
    schedule => "* * * * *"
    statement => "SELECT *, UNIX_TIMESTAMP(update_date) AS unix_ts_in_secs 
        FROM table_${mmm} 
        WHERE (UNIX_TIMESTAMP(update_date) > :sql_last_value AND update_date < NOW()) ORDER BY update_date ASC"
  }
}

```

Thank you for watching.

---

<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:** [June 10, 2020, 2:04am UTC](https://discuss.elastic.co/t/can-i-add-a-month-variable-to-the-table-name/232339/2 "2020-06-10T02:04:04Z")

</div>

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