Update / Delete rows in DB using Logstash JDBC input plugin

is it possible to use SQL operations like UPDATE or DELETE in statement parameter of Logstash JDBC input plugin? Or only SELECT operation is enabled?


I found out that it is possible:

statement => "UPDATE logs SET marked_by_logstash = true WHERE marked_by_logstash = false"
statement => "DELETE FROM logs WHERE marked_by_logstash = true"

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