I am totally new to nxlog and trying to set up a config file to watch a file on my local hard drive and send it to Loggly whenever it changes. My conf file is below. I copied this file from the loggly documentation and tried modifiying it as per their instructions so there may be some unnecessary lines in it. The file I want to watch and send is in the C:\\Program Files\\Autodesk\\Vault Professional 2016\\Explorer\\ folder. The file name is JobProcessor.log. When I uncomment the "#Exec file_write("C:\\Program Files\\Autodesk\\Vault Professional 2016\\Explorer\\JobProcessor.log", $raw_event);" line, it does send it out so I know the connection is working. But I have not been able to 'trigger' the file to process whenever there is a change to it. Any advice is appreciated. Thanks.
#define ROOT_STRING C:\\Program Files\\nxlog
define ROOT C:\\Program Files (x86)\\nxlog
define ROOT_STRING C:\\Program Files (x86)\\nxlog
define CERTDIR %ROOT%\\cert
# Include fileop while debugging, also enable in the output module below
Exec $Message = to_json();
##Module to watch a file
File "C:\\Program Files\\Autodesk\\Vault Professional 2016\\Explorer\\"
Exec $SourceName = 'JobProcessor.log';
##include the message and add meta data
Exec $Message = $raw_event;
#Use the following line for debugging (uncomment the fileop extension above as well)
#Exec file_write("C:\\Program Files\\Autodesk\\Vault Professional 2016\\Explorer\\JobProcessor.log", $raw_event);
#Path internal, eventlog => out
Path in => out