script to tail files and process json logs on the fly