However, I am trying to test monitoring a cognos log file. I created the log on the remote server in C:\cognos\cognos.log. I edited the nxlog.conf file according to instructions. Restart nxlog. Nothing.
No errors on remote server in nxlog.log, no errors in Logstash log file on NLS. Nothing that I can see. So here is my nxlog.conf file on the remote system and the test log I am trying to monitor.
nxlog.conf
Code: Select all
## See the nxlog reference manual at
## http://nxlog.org/nxlog-docs/en/nxlog-reference-manual.html
## Please set the ROOT to the folder your nxlog was installed into,
## otherwise it will not start.
#define ROOT C:\Program Files\nxlog
define ROOT C:\Program Files (x86)\nxlog
define CERT %ROOT%\cert
Moduledir %ROOT%\modules
CacheDir %ROOT%\data
Pidfile %ROOT%\data\nxlog.pid
SpoolDir %ROOT%\data
LogFile %ROOT%\data\nxlog.log
# Include fileop while debugging, also enable in the output module below
#<Extension fileop>
# Module xm_fileop
#</Extension>
<Extension json>
Module xm_json
</Extension>
<Extension syslog>
Module xm_syslog
</Extension>
<Input internal>
Module im_internal
</Input>
# Watch your own files
<Input file1>
Module im_file
File 'C:\cognos\cognos.log'
SavePos TRUE
Exec $Message = $raw_event;
</Input>
# Windows Event Log
<Input eventlog>
# Uncomment im_msvistalog for Windows Vista/2008 and later
Module im_msvistalog
# Custom query config to only pull the System and Application logs, excluding the Security log.
Query <QueryList>\
<Query Id="0">\
<Select Path="System">*</Select>\
<Select Path="Application">*</Select>\
</Query>\
</QueryList>
# Uncomment im_mseventlog for Windows XP/2000/2003
# Module im_mseventlog
</Input>
<Output out>
Module om_tcp
Host nagilgp01.dcri.duke.net
Port 3515
Exec $tmpmessage = $Message; delete($Message); rename_field("tmpmessage","message");
Exec $raw_event = to_json();
# Uncomment for debug output
# Exec file_write('%ROOT%\data\nxlog_output.log', $raw_event + "\n");
</Output>
<Route 1>
Path internal, file1, eventlog => out
</Route>
Code: Select all
10.136.134.45:9443 4812 2014-12-05 11:04:24.709 -5 D4C8F95AB338E736FF18E41032BDEEDCC00D34DD yqwwGslqv8dGyjysjvy4yjG84lvdv8j4v88wjhC2 qq9v89wl82vssC8CClqwh4v24C9wMy9l9h9yM8j9 4488 RSVP 6039 1 Audit.RTUsage.RSVP Response BatchReportService Failure RSV-SRV-
10.136.134.45:9443 4813 2014-12-05 12:04:24.705 -5 b4C8F95AB338E736FF18E41032BDEEDCC00D34DD cqwwGslqv8dGyjysjvy4yjG84lvdv8j4v88wjhC2 qq9v89wl82vssC8CClqwh4v24C9wMy9l9h9yM8j8 4488 RSVP 6039 1 Audit.RTUsage.RSVP Response BatchReportService Failure RSV-SRV-