How to user nagios log server to collect Windows DNS DHCP

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
jimbao
Posts: 2
Joined: Thu Jul 06, 2017 10:39 pm

How to user nagios log server to collect Windows DNS DHCP

Post by jimbao »

How to user nagios log server to collect Windows DNS DHCP LOG. and windows Active Directory log, Exchange Log
I test a DHCP log. but it error : cann't find ERROR failed to open directory: C:\Windows\System32\dhcp

the nxlog.conf
<Input dhcp_log1>
Module im_file
File 'C:\Windows\System32\dhcp\Dhcp*.log'
SavePos TRUE
Exec $Message = $raw_event;
</Input>
<Route 1>
Path internal, file1, eventlog, dhcp_log1 => out
</Route>

and in the nxlog service, I use my admin account to startup the service.

how to do it ?
thank !
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How to user nagios log server to collect Windows DNS DH

Post by cdienger »

Per https://nxlog.co/question/1848/nxlogcon ... -file-path, use:

Code: Select all

File "C:\\Windows\\sysnative\\dhcp\\Dhcp*.log"
Are the AD and exchange logs found in the event viewer? The default configuration found under http://NLS_IP/nagioslogserver/source-setup/windows is responsible for sending event these to NLS. The configuration can be further customized to send only specific events or logs if you wish. https://nxlog.co/question/1711/configur ... -logs-only has an example of how to only send specific event logs.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked