define ROOT C:\Program Files\nxlog
define CERTDIR %ROOT%\cert
define CONFDIR %ROOT%\conf\nxlog.d
define LOGDIR %ROOT%\data
include %CONFDIR%\\*.conf
define LOGFILE %LOGDIR%\nxlog.log
LogFile %LOGFILE%
Loglevel debug
Moduledir %ROOT%\modules
CacheDir %ROOT%\data
Pidfile %ROOT%\data\nxlog.pid
SpoolDir %ROOT%\data
<Extension gelf>
Module xm_gelf
ShortMessageLength -1
</Extension>
<Input dns>
Module im_file
File "C:\DNSLogs\dns.log"
SavePos TRUE
InputType LineBased
</Input>
<Input DHCP_IN>
Module im_file
File "C:\\Windows\\System32\\dhcp\\DhcpSrvLog-*.log"
SavePos TRUE
InputType LineBased
</Input>
<Output out>
Module om_udp
Host blr-pasyslog01.cisco.com
Port 5414
OutputType GELF
</Output>
<Output DHCP_OUT>
Module om_tcp
Host blr-pasyslog01.cisco.com
Port 5044
OutputType GELF
</Output>
<Route 1>
Path DHCP_IN => DHCP_OUT
</Route>
<Route 2>
Path dns => out
</Route>
Above is my nxlog conf file, After adding to the server it shows me below error in nxlog debug and no data sent to Graylog:
2024-06-10 20:19:58 DEBUG Module DHCP_IN got EOF from C:\Windows\System32\dhcp\DhcpSrvLog-Fri.log
2024-06-10 20:19:58 DEBUG got EOF for C:\Windows\System32\dhcp\DhcpSrvLog-Fri.log
2024-06-10 20:19:58 DEBUG Module DHCP_IN got EOF from C:\Windows\System32\dhcp\DhcpSrvLog-Mon.log
2024-06-10 20:19:58 DEBUG got EOF for C:\Windows\System32\dhcp\DhcpSrvLog-Mon.log
2024-06-10 20:19:58 DEBUG Module DHCP_IN got EOF from C:\Windows\System32\dhcp\DhcpSrvLog-Sat.log
2024-06-10 20:19:58 DEBUG got EOF for C:\Windows\System32\dhcp\DhcpSrvLog-Sat.log
2024-06-10 20:19:58 DEBUG Module DHCP_IN got EOF from C:\Windows\System32\dhcp\DhcpSrvLog-Sun.log
2024-06-10 20:19:58 DEBUG got EOF for C:\Windows\System32\dhcp\DhcpSrvLog-Sun.log
2024-06-10 20:19:58 DEBUG Module DHCP_IN got EOF from C:\Windows\System32\dhcp\DhcpSrvLog-Thu.log
2024-06-10 20:19:58 DEBUG got EOF for C:\Windows\System32\dhcp\DhcpSrvLog-Thu.log
2024-06-10 20:19:58 DEBUG Module DHCP_IN got EOF from C:\Windows\System32\dhcp\DhcpSrvLog-Tue.log
2024-06-10 20:19:58 DEBUG got EOF for C:\Windows\System32\dhcp\DhcpSrvLog-Tue.log
2024-06-10 20:19:58 DEBUG Module DHCP_IN got EOF from C:\Windows\System32\dhcp\DhcpSrvLog-Wed.log
2024-06-10 20:19:58 DEBUG got EOF for C:\Windows\System32\dhcp\DhcpSrvLog-Wed.log
I am not sure what I am missing here