Larry, The deb package creates an nxlog user automatically. You need user/group in the conf file to drop privileges, I believe the default conf already has this.
When you start nxlog it probably exits because normally it forks itself into background. You can start with -f to avoid this. The LogFile directive is commented out. Thus no logs. If the server runs properly and you have verified that it does listen on the ports , then the connection issues may be firewall or network related. Regards, Botond On Mon, 9 Dec 2013 17:46:42 -0500 "Ciummo, Lawrence" <[email protected]> wrote: > I've installed the Debian nxlog package on my server and set up a client side > machine that should be transmitting log files. > > I can't easily reboot the server so I tried nxlog-processor from the command > line, but the clients never connected... > .168.10.1:5114;Connection timed out > 2013-12-09 17:35:24 INFO last message repeated 2 times > 2013-12-09 17:35:24 ERROR couldn't connect to tcp socket on > 192.168.10.1:5116;Connection timed out > 2013-12-09 17:35:24 ERROR couldn't connect to tcp socket on > 192.168.10.1:5115;Connection timed out > 2013-12-09 17:35:34 INFO connecting to 192.168.10.1:5115 > 2013-12-09 17:35:34 INFO connecting to 192.168.10.1:5114 > > When I run nxlog as su, it starts exits almost immediately with no nxlog log > created. > > Are there more steps to getting it running in Linux? Do I need to create a > user nxlog. > > This is my config file on the server, translated from a similar Windows > installation... > > Thanks > Larry > ## Please set the ROOT to the folder your nxlog was installed into, > ## otherwise it will not start. > > ##define ROOT C:\nxlog > > ##Moduledir %ROOT%\modules > ##CacheDir %ROOT%\data > ##Pidfile %ROOT%\data\nxlog.pid > ##SpoolDir %ROOT%\data > ##LogFile %ROOT%\data\nxlog.log > > <Input platypus> > Module im_tcp > Host 0.0.0.0 > Port 5114 > </Input> > > <Input syslog> > Module im_tcp > Host 0.0.0.0 > Port 5115 > </Input> > > <Input breakpad> > Module im_tcp > Host 0.0.0.0 > Port 5116 > </Input> > > <Output out> > Module om_file > File "/tmp/nxlog/platypus/UUT_" + $MessageSourceAddress + "_" + > year(now()) + "_" + month(now()) + "_" + day(now()) + "_platypus.log"" > </Output> > > <Output out2> > Module om_file > # File "C:\\nxlog\platypus\UUT_" + $MessageSourceAddress + "_" + > year(now()) + "_" + month(now()) + "_" + day(now()) + "_syslog.log"" > File "/tmp/nxlog/platypus\UUT_" + $MessageSourceAddress + "_" + > year(now()) + "_" + month(now()) + "_" + day(now()) + "_syslog.log"" > </Output> > > <Output out3> > Module om_file > File "/tmp/nxlog/platypus/UUT_" + $MessageSourceAddress + "_" + > year(now()) + "_" + month(now()) + "_" + day(now()) + "_crashlog.log"" > </Output> > > > # Port 5114 > <Route 1> > Path platypus => out > </Route> > > # Port 5115 > <Route 2> > Path syslog => out2 > </Route> > > # Port 5116 > <Route 3> > Path breakpad => out3 > </Route> > > > > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ nxlog-ce-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users
