Errors opening log source

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Errors opening log source

Post 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
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Errors opening log source

Post 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"
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Errors opening log source

Post 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)
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Errors opening log source

Post by hsmith »

I'll go ahead and close this thread since the issue is resolved.
Former Nagios Employee.
me.
Locked