Nxlog not forwarding the logs
Hi All,
I am on Cent OS 7 and installed nxlog to forward the /var/log/messages and /var/log/secure to my logging server. When I start its starting fine and in logs I am gettting weird log which I am not able to solve.
ERROR
2017-10-19 13:32:16 ERROR om_tcp detected a connection error;End of file found
2017-10-19 13:32:17 INFO connecting to 10.12.86.87:12225
2017-10-19 13:32:17 INFO reconnecting in 1 seconds
2017-10-19 13:32:17 ERROR om_tcp detected a connection error;End of file found
Config:
########################################
# Global directives #
########################################
User nxlog
Group nxlog
LogFile /var/log/nxlog/nxlog.log
LogLevel INFO
########################################
# Modules #
########################################
<Input messages>
Module im_file
File "/var/log/messages"
SavePos TRUE
</Input>
<Input securelogs>
Module im_file
File "/var/log/secure"
SavePos TRUE
</Input>
<Output logserver>
Module om_tcp
Host 10.12.86.87
Port 12225
</Output>
<Route Log-TCP>
Path messages, securelogs => logserver
</Route>
Selinux and Firewall is turned off in my machine. And remote server is listenting on the port 12225 and that can be reachable from this machine without any issues. Can you help me with what I can do to solve this issue.
Thanks in advance
End Of File found (EOF) in this context means that the remote server is closing the connection.