Running an external program when a new entry made to a table in InfluxDb

I want to setup something like this: when a new entry is found in a table in InfluxDB, an event handler would trigger and external program to be executed.
Has someone done something similar? Can you please help…

Any hint? or idea? anyone please