Page 1 of 1

Errors opening log source

Posted: Fri Jun 03, 2016 2:26 pm
by dlukinski
Hello LOG support

We had configure log shipping (Windows 2008 R2 source, which worked for us in similar cases in the past), but getting errors as if nxlog is unable to access log files:

{"EventTime":"2016-06-03 20:56:33","Hostname":"FIHP-TCDIS10","SeverityValue":4,"Severity":"ERROR","SourceName":"nxlog-ce","ProcessID":6040,"ErrorCode":720123,"EventReceivedTime":"2016-06-03 20:56:33","SourceModuleName":"internal","SourceModuleType":"im_internal","message":"failed to open C:\\Siemens\\Dispatcher\\Logs\\Dispatcher\\process\\*.log\r\nThe filename, directory name, or volume label syntax is incorrect. "}

- Path is correct except for double "\\" and we are not sure where they come from.

conf file attached

Re: Errors opening log source

Posted: Fri Jun 03, 2016 2:46 pm
by scottwilkerson
This post on the nx log mailing list gave me a clue on the workaround for wildcards on Windows
https://www.mail-archive.com/nxlog-ce-u ... 00037.html

Lets change this

Code: Select all

File     'C:\Siemens\Dispatcher\Logs\Dispatcher\process\*.log'
to this

Code: Select all

File     "C:\Siemens\Dispatcher\Logs\Dispatcher\process\\\*.log"

Re: Errors opening log source

Posted: Fri Jun 03, 2016 3:24 pm
by dlukinski
scottwilkerson wrote:This post on the nx log mailing list gave me a clue on the workaround for wildcards on Windows
https://www.mail-archive.com/nxlog-ce-u ... 00037.html

Lets change this

Code: Select all

File     'C:\Siemens\Dispatcher\Logs\Dispatcher\process\*.log'
to this

Code: Select all

File     "C:\Siemens\Dispatcher\Logs\Dispatcher\process\\\*.log"
Worked, Thank you (very strange of why the first way works on another group of equally installed servers :-\ (although no \*.log in that case)

Re: Errors opening log source

Posted: Mon Jun 06, 2016 10:16 am
by hsmith
I'll go ahead and close this thread since the issue is resolved.