NXLog does not forward logs

View thread

ashutosh

Hi Team,

Recently I started testing NXLog and was tryingto simulate log forwarding to other syslog servers. My logs are stored in *.log files and I want to forward them to another syslog destination. But after so many attempts, I still fail, and my logs are not forwarded. I also tried writing to another file using om_file but that does not help me as well. The NXLog's logs are of not much help, as It is stuck with just "Connecting to X.X.X.X:514 and never does anything ahead of it. IT does not show any warning / error as well. How do I investigate, what went wrong.

I am on Ubuntu 16.04 with NXLog CE 2.10.2150 downloaded from this portal.

Below is my configuration,

<Input infile1> Module im_file File "/opt/logs/pix.log" InputType LineBased </Input>

<Output outfile1> Module om_file CreateDir TRUE File "/opt/logs/output.log" </Output>

<Output outtcp1> Module om_tcp Host X.X.X.X Port 514 </Output>

<Route r1> path infile1 => outtcp1, outfile1 </Route>

I have checked on the network side, did Telnet (for TCP) and NC (for UDP) everything works fine, even rsyslog is able to forward data but NXLog fails.