For full info, here is the *generated *(i.e. incorrectly working) NXLog 
config:

"define ROOT C:\Program Files (x86)\nxlog

<Extension gelf>
  Module xm_gelf
</Extension>

Moduledir %ROOT%\modules
CacheDir %ROOT%\data
Pidfile %ROOT%\data\nxlog.pid
SpoolDir %ROOT%\data
LogFile %ROOT%\data\nxlog.log
LogLevel INFO

<Extension logrotate>
    Module  xm_fileop
    <Schedule>
        When    @daily
        Exec    file_cycle('%ROOT%\data\nxlog.log', 7);
     </Schedule>
</Extension>




<Input 581720cf88a523060108547c>
Module im_msvistalog
PollInterval 1
SavePos True
ReadFromLast True
</Input>



<Output 5817209c88a5230601085447>
Module om_udp
Host 192.168.1.85
Port 12201
OutputType  GELF
Exec $short_message = $raw_event; # Avoids truncation of the short_message 
field.
Exec $gl2_source_collector = 'd011c5ad-60df-4314-b7ea-736a39ef720f';
Exec $Hostname = hostname_fqdn();
</Output>



<Route route-0>
  Path 581720cf88a523060108547c => 5817209c88a5230601085447
</Route>"

Here is my *manual* (i.e. correctly working) NXLog config:

"define ROOT C:\Program Files (x86)\nxlog

<Extension gelf>
  Module xm_gelf
</Extension>

Moduledir %ROOT%\modules
CacheDir %ROOT%\data
Pidfile %ROOT%\data\nxlog.pid
SpoolDir %ROOT%\data
LogFile %ROOT%\data\nxlog.log
LogLevel INFO

<Extension logrotate>
    Module  xm_fileop
    <Schedule>
        When    @daily
        Exec    file_cycle('%ROOT%\data\nxlog.log', 7);
     </Schedule>
</Extension>

<Input 581720cf88a523060108547c>
Module im_msvistalog
PollInterval 1
SavePos True
ReadFromLast True
</Input>



<Output 5817209c88a5230601085447>
Module om_udp
Host 192.168.1.85
Port 12201
OutputType  GELF
Exec $short_message = $raw_event; # Avoids truncation of the short_message 
field.
Exec $gl2_source_collector = 'd011c5ad-60df-4314-b7ea-736a39ef720f';
Exec $Hostname = hostname_fqdn();
</Output>

<Route route-0>
  Path 581720cf88a523060108547c => 5817209c88a5230601085447
</Route>"

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/7b3c057d-1e6e-4fc2-a871-2f42e4b5ad66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to