Microsoft DNS
You can use Logmanager Windows agent to collect logs/information from Microsoft DNS service running on Windows Server platform. In order to collect logs from Microsoft DNS you need to meet following conditions:
- Install Orchestrator on the server where DNS service is running.
- Create a file to store logs.
- Enable Debug Logging on DNS service and store logs to pre-created file
- Configure agent to collect logs from created file
If collecting logs from ANY dns, you need to disable auto resolv dns names DNS Config
- Log in to Windows Server running DNS service (you need administrator rights)
- Install Logmanager Windows agent, if it is already installed, ignore this step (more about agents here: Logmanager Windows Agent)
- Create a dns.log file in any location on disk where you will send and save logs, for example
C:\Logs\dns.log
is recommended
- Go to DNS Manager settings (Start/DNS or Server Manager/DNS)
- Right click on your server and select Properties below
- Go to Event Logging tab and make sure that All events are selected.
- Now go to Debug Logging tab and set options as shown in figure
- At bottom of window there is a Log file passage, File path and name, enter here full path of file you created, i.e.
C:\Logs\dns.log
- Click Apply and OK - you have now successfully set up collection of logs from MS DNS and saved them to file of your choice
To successfully collect logs from MS DNS and process them on Logmanager side, you need to configure them in GUI.
- Log in to Logmanager as an administrator
- Go to Sources/Beat agents
- Locate server/agent where DNS is running and click on blue pen on right to edit it
- Locate Log Files, click green Add button on right
- Select dns as template, this will automatically fill in dns tag which is needed for proper classification, i.e. don’t delete it!
- Insert full path where log file is stored, i.e.
C:\Logs\dns.log
, click OK
- Now click Save button at bottom.
If you delete dns tag, logs will not be processed correctly and will not appear in Logmanager as logs from MS DNS.
By doing this, you have set up log collection and processing on Logmanager side, since agent takes a while to download new configuration, we recommend manually restarting logmanager-orchestrator-service
on server via Task Manager. After restarting service, configuration will be updated and Agent should send DNS logs to Logmanager, which can automatically classify and process them with correct parser thanks to dns tag.
You can check collection of MS DNS logs in Logs/Dashboards on Windows DNS log dashboard.