I have the following NXLog config that reads a file from disk and forwards it to another host (syslog). By default, it appears NXLog only forwards the data in the log file if it has changed.
How can you configure 'nxlog.conf' so that it always forwards the file, even if the data is the same?
<Input in>
Module im_file
File "C:\\myfile.txt"
</Input>
<Output out>
Module om_tcp
Host 127.0.0.1
Port 12345
</Output>
<Route 1>
Path in => out
</Route>
After some digging on the NXLog forum, this cannot be done. Basically, NXLog will monitor the file (you can configure the frequency) for changes and re-transmit when it has appended values (or changed).
So, a workaround would be to delete the file and re-write the contents (on some schedule perhaps) to get NXLog to forward it again.