SOLVED

DNS Logs Onboarding

%3CLINGO-SUB%20id%3D%22lingo-sub-1955464%22%20slang%3D%22en-US%22%3EDNS%20Logs%20Onboarding%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1955464%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Everyone!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMe%20and%20my%20team%20are%20starting%20to%20onboard%20On-Prem%20stuff%20and%20we%20thought%20DNS%20would%20be%20an%20easy%20one%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20what%20I%20gather%20from%20guide%2C%20Windows%20Server%202016%20has%20already%20some%20analytics%20enabled%20but%20the%20guide%20says%20to%20turn%20them%20on%20and%20actually%20set%20the%20logfile%20to%20never%20overwrite%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fprevious-versions%2Fwindows%2Fit-pro%2Fwindows-server-2012-R2-and-2012%2Fdn800669(v%3Dws.11)%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EDNS%20Logging%20and%20Diagnostics%20%7C%20Microsoft%20Docs%3C%2FA%3E%26nbsp%3B-%20Step%20To%20enable%20DNS%20diagnostic%20logging%20-%20Substep%205).%20Isn't%20this%20an%20issue%20for%20Production%20Domain%20Controller%20Servers%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFurthermore%2C%20are%20the%20steps%20under%20%22Using%20ETW%20consumers%22%20needed%20to%20collect%20logs%20with%20the%20Sentinel%2FLog%20Analytics%20Agent%3F%20The%20%22DNS%20Analytics%22%20solution%20too%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanking%20you%20all%20in%20advance%20for%20the%20assist!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAndreas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1956078%22%20slang%3D%22en-US%22%3ERe%3A%20DNS%20Logs%20Onboarding%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1956078%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F890890%22%20target%3D%22_blank%22%3E%40AndreasSky%3C%2FA%3E%26nbsp%3BI%20would%20ignore%20that%20documentation%20in%20favor%20of%20using%20the%20%22DNS%20(Preview)%22%20data%20connector.%26nbsp%3B%20It%20seems%20to%20be%20fairly%20simple.%26nbsp%3B%20You%20install%20the%20Microsoft%20Monitor%20Agent%20on%20your%20DNS%20server(s)%20and%20then%20install%20the%20DNS%20solution.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1956898%22%20slang%3D%22en-US%22%3ERe%3A%20DNS%20Logs%20Onboarding%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1956898%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F46875%22%20target%3D%22_blank%22%3E%40Gary%20Bushey%3C%2FA%3E%26nbsp%3BHmmm%20I%20see...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20done%20so%20but%20I%20didn't%20see%20DNS%20Lookups%20come%20through%20until%20I%20also%20enabled%20those%20steps...%20but%20I%20also%20had%20to%20go%20to%20the%20DNS%20solution%20and%20play%20with%20settings%20a%20bit%20to%20have%20them%20load%20up%20and%20that%20happened%20after%20I%20already%20followed%20the%20previous%20steps...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20think%20these%20steps%20are%20not%20necessary%20any%20more%20and%20just%20installing%20MMA%20%2B%20playing%20with%20DNS%20Analytics%20Solution%20would%20have%20done%20it%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1957201%22%20slang%3D%22en-US%22%3ERe%3A%20DNS%20Logs%20Onboarding%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1957201%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F890890%22%20target%3D%22_blank%22%3E%40AndreasSky%3C%2FA%3E%26nbsp%3BI%20would%20have%20thought%20that%20any%20additional%20steps%20needed%20would%20have%20been%20listed%20but%20I%20have%20not%20actually%20tried%20this%20Data%20Connector%20myself.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1958782%22%20slang%3D%22en-US%22%3ERe%3A%20DNS%20Logs%20Onboarding%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1958782%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F46875%22%20target%3D%22_blank%22%3E%40Gary%20Bushey%3C%2FA%3E%26nbsp%3BThat's%20ok.%20I%20appreciate%20the%20answer%20in%20any%20case!%20I%20will%20keep%20experimenting%20on%20Lab%20Servers%20but%20I%20am%20unsure%20of%20using%20in%20production%20as-is.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyone%20else%20that%20maybe%20has%20played%2Fuses%20it%20regularly%3F%20Does%20the%20log%20file%20grow%20forever%3F%20How%20is%20this%20handled%20on%20your%20servers%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1962188%22%20slang%3D%22en-US%22%3ERE%3A%20DNS%20Logs%20Onboarding%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1962188%22%20slang%3D%22en-US%22%3Ebump%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1963366%22%20slang%3D%22en-US%22%3ERE%3A%20DNS%20Logs%20Onboarding%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1963366%22%20slang%3D%22en-US%22%3EHave%20you%20tried%3F%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-sentinel%2Fconnecting-dns-analytics-azure-sentinel%2Fm-p%2F894427%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-sentinel%2Fconnecting-dns-analytics-azure-sentinel%2Fm-p%2F894427%3C%2FA%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello Everyone!

 

Me and my team are starting to onboard On-Prem stuff and we thought DNS would be an easy one :)

 

From what I gather from guide, Windows Server 2016 has already some analytics enabled but the guide says to turn them on and actually set the logfile to never overwrite (DNS Logging and Diagnostics | Microsoft Docs - Step To enable DNS diagnostic logging - Substep 5). Isn't this an issue for Production Domain Controller Servers?

 

Furthermore, are the steps under "Using ETW consumers" needed to collect logs with the Sentinel/Log Analytics Agent? The "DNS Analytics" solution too?

 

Thanking you all in advance for the assist!

 

 

Andreas

9 Replies

@AndreasSky I would ignore that documentation in favor of using the "DNS (Preview)" data connector.  It seems to be fairly simple.  You install the Microsoft Monitor Agent on your DNS server(s) and then install the DNS solution.

@Gary Bushey Hmmm I see...

 

I have done so but I didn't see DNS Lookups come through until I also enabled those steps... but I also had to go to the DNS solution and play with settings a bit to have them load up and that happened after I already followed the previous steps...

 

Do you think these steps are not necessary any more and just installing MMA + playing with DNS Analytics Solution would have done it?

@AndreasSky I would have thought that any additional steps needed would have been listed but I have not actually tried this Data Connector myself.

@Gary Bushey That's ok. I appreciate the answer in any case! I will keep experimenting on Lab Servers but I am unsure of using in production as-is.

 

 

Anyone else that maybe has played/uses it regularly? Does the log file grow forever? How is this handled on your servers?

bump
best response confirmed by AndreasSky (Occasional Contributor)
Solution

@Clive Watson This is indeed NEEDED (and very well hidden... I'm not mentioning anything because it is tagged as "preview" solution)... to get logs from client requests to pop into Sentinel.

 

My original question and now answer is:

 

On the sub-step mentioned on the guide (DNS Logging and Diagnostics | Microsoft Docs - Step To enable DNS diagnostic logging - Substep 5) to enable the analytics, if you click on "do not overwrite" the file grows forever (very very bad for production)... AND it displays into Event Viewer. If you set a limit though (like 102400 == 100MB) then log is overwritten and it still works FINE for Sentinel BUT... you can't see the logs inside event viewer any more. This is a non-issue on production.

 

My suggestion for new implementations:

 

Activate Analytics as on the guide and do an nslookup to check if you get a log inside eventviewer, then follow your link and mess about with the solution config (needed!!!), then do another nslookup and see if the log comes to sentinel. The moment you start seeing logs flowing to Sentinel you can go back into event viewer, disable analytics on DNS for a second and change to overwrite logs as needed (set a 100-1000MB limit depending on the server load) and re-enable (needs a disable else it crashes). You will lose the view from event viewer but your server won't get filled with useless logs.

 

If you ever re-register/update the agent you need to mess with the DNS solution Config again on the workspace to make it work again btw!

 

Thank you all for your tips. In the end... a Lab and lots of trial/error did it. This solution certainly needs better documentation. If anyone from MS sees this I'd be glad to help while I have it recent and can reproduce for snapshots etc for your guide.

 

Best,

Andreas

@AndreasSky thank you so much for the detailed feedback, a new DNS option is being planned.... I'll say more when I have something I can share.  Thanks Clive 

@Clive Watson Thank you for those news. Can't say I was excited to see the solution as is. May I please bother you on another related question? Does the DNS solution (that has a "malicious" field) evaluate the ...maliciousness of a DNS lookup as it is now or is it just future planning? I haven't been able to trigger a reaction from it.