I solved this problem by using the sink type as file_roll. I also had to identify the second VM's IP so the two could connect.
I found the step-by-step instructions on how to do this at this link: <
Also, you do not need to write any Java to do this. However, as is standard with Flume, ensure your JAVA_HOME is declared properly in the flume-env.sh file. All other parts are handled by the .conf file created (as described in the above link).