Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (44 sloc) 1.23 KB
## This is a sample configuration file. See the nxlog reference manual about the
## configuration options. It should be installed locally and is also available
## online 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
Moduledir %ROOT%\modules
CacheDir %ROOT%\data
Pidfile %ROOT%\data\nxlog.pid
SpoolDir %ROOT%\data
LogFile %ROOT%\data\nxlog.log
<Extension json>
Module xm_json
</Extension>
<Input in_eventlog>
Module im_msvistalog
</Input>
<Input in_vc_logs>
Module im_file
File 'C:\\ProgramData\\VMware\\VMware VirtualCenter\\Logs\\vpxd*.log'
SavePos TRUE
Exec $message = $raw_event;
Exec $hostname = hostname_fqdn();
Exec $filename = file_name();
</Input>
<Output out_vc_logs>
Module om_udp
Host 127.0.0.1
Port 1514
Exec to_json();
</Output>
<Output out_eventlog>
Module om_udp
Host 127.0.0.1
Port 1515
Exec to_json();
</Output>
<Route vc_logs>
Path in_vc_logs => out_vc_logs
</Route>
<Route eventlog>
Path in_eventlog => out_eventlog
</Route>