Jdbc input scheduler in logstash configuration

I am using a jdbc input in logstash configuration file. I dont want to schedule it regularly but want it to run only when some insert, update , delete operation happens in the DB.

Is there a way i can do this ?

You could write a database trigger that triggers a Logstash run.