Monitors file system change and send messages over to the Kafka cluster
monitor = fsmonitor.New(...) && go monitor.Start(...)
range
overmonitor.Notices()
to collect file change notices- Sends messages over to kafka cluster under a predefined
topic
usingsarama.SyncProducer
. - In the meantime, log to kafka cluster under
topic
.process.log topic usingsarama.AsyncProducer
.
Inspired by sarama's http_sever example