My concern was logging back to the RDBS via an insert statement after the query to extract from the DB. I got in touch with the creator of the jdbc-river. He mentioned this is how I should configure things: really helpful!
curl -XDELETE '0:9200/_river/my_jdbc_river/
curl -XPUT '0:9200/_river/my_jdbc_river/_meta' -d '
{
"type": "jdbc",
"jdbc": {
"url": "jdbc:mysql://localhost:3306/test",
"user": "",
"password": "",
"schedule": "0 0-59 0-23 ? * *",
"sql": [
{
"statement": "select *, created as _id, \"myjdbc\" as _index, \"mytype\" as _type from orders"
},
{
"statement": "insert into ack(n,t,c) values(?,?,?)",
"parameter": [
"$job",
"$now",
"$count"
]
}
]
}
}'