Monitor log files for patterns and then execute actions