I followed the guide online, tried to read through example after example of how to setup inputs and I have managed to start an input on port 5140 but not 514 (for firewall/switches that give me no port sending options).
I have 1 windows server running a SolarWinds Syslog forwarder set to port 5140 and a second Windows sever using the sidecar program, which defaults to the port 9000 api.
I am missing something as I am getting no messages at all.
I am now trying the NXLog agnet on a Windows 2012 server.
The NXlog is stating:
2017-04-07 08:06:24 ERROR couldn’t connect to tcp socket on 134.11.1.19:5140; No connection could be made because the target machine actively refused it.
I do have the 5140 tcp input enabled and running on graylog
Check the firewall configuration of the relevant machines and make sure that your Windows machines are able to send their messages to 134.11.1.19 on port 5140/tcp.
2017-04-07 15:03:19 ERROR module 'internal' is not declared at C:\Program Files (x86)\nxlog\conf\nxlog.conf:35
2017-04-07 15:03:19 ERROR module 'eventlog' is not declared at C:\Program Files (x86)\nxlog\conf\nxlog.conf:35
2017-04-07 15:03:19 ERROR route 1 is not functional without input modules, ignored at C:\Program Files (x86)\nxlog\conf\nxlog.conf:35
2017-04-07 15:03:19 WARNING no routes defined!
2017-04-07 15:03:19 WARNING not starting unused module in
2017-04-07 15:03:19 WARNING not starting unused module out
2017-04-07 15:03:19 INFO nxlog-ce-2.9.1716 started
nxlg config:
## 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/docs/
## 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 _syslog>
Module xm_syslog
</Extension>
<Input in>
Module im_msvistalog
# For windows 2003 and earlier use the following:
# Module im_mseventlog
</Input>
<Output out>
Module om_tcp
Host <gralogserverip>
Port 5140
Exec to_syslog_snare();
</Output>
<Route 1>
Path internal, eventlog => out
</Route>