I am a first time user of nxlog. I have a fresh install of CentOS. There is nothing on it but the base install, nxlog, netstat, and tcpdump.
I setup a very basic conf file and pointed several switches to the box but I am not getting any output to the log file.
I made sure that nslog is listening on tcp and udp 514 with netstat. I also checked to make sure packets were coming to the box with tcpdump.
Here is my nxlog.conf. Any suggestions?
# Global directives #
########################################
User nxlog
Group nxlog
LogLevel INFO
# Modules #
########################################
<Extension _syslog>
Module xm_syslog
</Extension>
Module im_udp
Host 0.0.0.0
Port 514
#Exec parse_syslog();
</Input>
Module im_tcp
Host 0.0.0.0
Port 514
#Exec parse_syslog();
</Input>
Module om_file
File "%BASEDIR%/logmsg.txt"
</Output>
########################################
# Routes #
########################################
<Route 1>
Path udp_in, tcp_in => default_fileout
</Route>
I don't see anything wrong with the config , though nxlog.log should indicate any issues.
The problem is most likely on the network level. Try iptables -F perhaps?