It's completely impossible to help unless you tell us what the problem is. In what way isn't the configuration working? Are you getting an error message?
The host and protocol options are for Logstash 1.x only. You should use hosts instead. See the documentation of the elasticsearch output for available options and what they mean.
In order to track updates, inserts and deletes you will need to design your query so that it retrieves the desired changes. In order to not continuously retrieve all records you may want to use the sql_last_value and compare this to a field in your data in order to only get changes since the last run.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.