Nagios LOG unable to read log files in Windows

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

Nagios LOG unable to read log files in Windows

Post by dlukinski »

We are getting this error instead of the LOG files being shipped:

{"EventTime":"2020-03-10 22:32:01","Hostname":"ZZZZZZZZZZZ","SeverityValue":4,"Severity":"ERROR","SourceName":"nxlog-ce","ProcessID":5724,"ErrorCode":720005,"EventReceivedTime":"2020-03-10 22:32:01","SourceModuleName":"internal","SourceModuleType":"im_internal","message":"failed to open D:\\Test\\test_std\\WEB-INF\\logs\r\nAccess is denied. "}

SYSTEM has full rights to the folder, how ot make nxlog read the files?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios LOG unable to read log files in Windows

Post by Box293 »

In your config I believe you need to define the full path to the actual log file and not a directory.

This forum post seems to be similar to your issue.

https://support.nagios.com/forum/viewto ... 10#p169306
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Nagios LOG unable to read log files in Windows

Post by dlukinski »

Box293 wrote:In your config I believe you need to define the full path to the actual log file and not a directory.

This forum post seems to be similar to your issue.

https://support.nagios.com/forum/viewto ... 10#p169306

How this could possibly work for logging?
- with files, created daily and having various extension naming conventions?

This really makes Nagios LOG useless
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios LOG unable to read log files in Windows

Post by scottwilkerson »

You can use wildcards in for the file name

See:
http://nxlog-ce.sourceforge.net/nxlog-d ... ml#im_file
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Nagios LOG unable to read log files in Windows

Post by dlukinski »

scottwilkerson wrote:You can use wildcards in for the file name

See:
http://nxlog-ce.sourceforge.net/nxlog-d ... ml#im_file
Still does work in any capacity
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios LOG unable to read log files in Windows

Post by scottwilkerson »

Ok, in the CCM Services look for this config name

Code: Select all

3ds-app40_53.40
edit the service /log Usage
You will find it has the following hostgroup attached

Code: Select all

3DS TATA IDC  Bangalore
This hostgroup contains the hosts you are looking for
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Nagios LOG unable to read log files in Windows

Post by dlukinski »

scottwilkerson wrote:Ok, in the CCM Services look for this config name

Code: Select all

3ds-app40_53.40
edit the service /log Usage
You will find it has the following hostgroup attached

Code: Select all

3DS TATA IDC  Bangalore
This hostgroup contains the hosts you are looking for
This last one must be from another Forum Post - does not apply to us

Please close this thread (we found the resolution for now)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios LOG unable to read log files in Windows

Post by scottwilkerson »

dlukinski wrote:
scottwilkerson wrote:Ok, in the CCM Services look for this config name

Code: Select all

3ds-app40_53.40
edit the service /log Usage
You will find it has the following hostgroup attached

Code: Select all

3DS TATA IDC  Bangalore
This hostgroup contains the hosts you are looking for
This last one must be from another Forum Post - does not apply to us

Please close this thread (we found the resolution for now)
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked