How do I send DNS creation and deletion logs to Graylog? I use nxlog on a Windows Server 2025 server. The server logs appear, but not the DNS logs. I need EventIDs 515, 516, 517, and 518. If I run the command in PowerShell, it gives me the results, but I don’t know how to put them in Graylog.
I use nxlog CE.
Example of a command run in PowerShell to display the event ID 516 logs:
"Get-WinEvent -LogName “Microsoft-Windows-DNSServer/Audit” -FilterXPath “*[System[(EventID=516)]]” | Where-Object {$_.Message -notmatch “dynamic update”} | Select-Object TimeCreated, Id, @{Name=‘User’;Expression={$_.Properties[1].Value}}, Message
"