In this article we'll discuss using Windows to tail a minifi-app log natively in Ubuntu. This article assumes that you have Windows Linux Subsystem installed. A tutorial can be found here. The example machine I have is a Windows 10 machine running MiNIFi C++ natively. In this example we'll provide a very quick overview of the steps to tailing files within your Windows 10 instance. Note that the files included specify paths on my windows system. You will need to change paths to represent those on your file system. The MiNiFi log properties file will be used to place the log file into my C:/minifi/ directory. The TailFile Processor will be directed at this file, which will then log the attributes into the same C:/minifi/minifi-app.log . This will cause the TailFile processor to constantly pull new data from the log file and log attributes for each FlowFile. 

Step-by-step guide

  1. WIthin your linux instance, download all dependencies as found in the readme
  2. Build and install MiNFi C++ as per the readme above
  3. Download and place the configuration files in your MiNiFi C++ Configuration directory.
    1. Modify config.yml to adjust the TailFile source file named "File to Tail"
  4. Run MiNiFi. The figure below shows an example where we have two terminals tailing the minifi-app.log located in c:/minifi/minifi-app.log

Tailing MiNiFi File in Windows


minifi.propertiesconfig.ymlminifi-log.properties