NXLOG service faiils to start on 2012R2

Tags:

#1 pclark

I have installed nxlog on our 2012R2 DC's.  I go into the file and uncomment out the path to the software.  I then replace the IP address of syslog server with ours and then save the file.  I then go and try and start the nxlog service and immediatly get an error 1053:  The service did not respond to a control request in a timely manner.

 

I look in the nxlog log file and see the following error message --->  nxlog failed to start: Couldn't change to SpoolDir '%ROOT%\data'
The system cannot find the path specified. 

 

I know this error message is incorrect because the same path is used for CacheDir, Pidfile, and LogFile and those seem to be working. 

 

Upon further experimentation if I comment out the Logfile path as well as the Logfile path I can get the service to start but no logs are sent over to my syslog server.  

I find it funny that even thought the error is for the SpoolDir and the Logfile seems to be working I have to comment out both items to get the service to start otherwise I continue to get the Error 1053.

I'm hoping someone can help with this.   Thanks.

#2 b0ti Nxlog ✓
#1 pclark
I have installed nxlog on our 2012R2 DC's.  I go into the file and uncomment out the path to the software.  I then replace the IP address of syslog server with ours and then save the file.  I then go and try and start the nxlog service and immediatly get an error 1053:  The service did not respond to a control request in a timely manner.   I look in the nxlog log file and see the following error message --->  nxlog failed to start: Couldn't change to SpoolDir '%ROOT%\data' The system cannot find the path specified.    I know this error message is incorrect because the same path is used for CacheDir, Pidfile, and LogFile and those seem to be working.    Upon further experimentation if I comment out the Logfile path as well as the Logfile path I can get the service to start but no logs are sent over to my syslog server.   I find it funny that even thought the error is for the SpoolDir and the Logfile seems to be working I have to comment out both items to get the service to start otherwise I continue to get the Error 1053. I'm hoping someone can help with this.   Thanks.

You have probably removed the line

define ROOT C:\Program Files (x86)\nxlog

Otherwise the error message would contain the real path such as

Couldn't change to SpoolDir 'C:\Program Files (x86)\nxlog\data'

Without the define it's no getting substituted properly.