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