Use data from Mysql to ElasticSearch with Logstash I'm using logstash for use my mysql database in ElasticSearch

My conf is the next.

input {
    jdbc {
        jdbc_connection_string =&gt; "jdbc:mysql://[ip]:3306/nextline_dev"
        jdbc_user =&gt; "[user]"
        jdbc_password =&gt; "[pass]"
        #schedule =&gt; "* * * * *"
        #jdbc_validate_connection =&gt; true
        jdbc_driver_library =&gt; "/path/mysql-connector-java-6.0.5.jar"
        jdbc_driver_class =&gt; "com.mysql.cj.jdbc.Driver"
        statement =&gt; "SELECT * FROM Account"
    }
}
output {
    elasticsearch {
        index =&gt; "account"
        document_id =&gt; "%{id}"
        hosts =&gt; ["127.0.0.1:9200"]
    }
}


But I have some questions, I want to schedule more than one query, but the index will be always account.

Can I make a dynamic index for the output to elasticsearch? And how can I use more than one statement? (Export more than one table)
I found that ELK LogStash 6.X have document_id deprecated, so if I use my configuration without document_id it works.