Exec plugin

Have a look at the pipe output.

I'd send the events to a broker (Redis, RabbitMQ, Kafka, ...) and write a script that pulls the events from there.