API Reference
Command
Watch-ADXDnsLog
Watches a DNS debug log and emits entries as they appear.
Examples
Generated fallback example from command syntax.
Watch-ADXDnsLog -Path 'C:\Path'
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Watch-ADXDnsLog -Path <string> [-AlertAction <ScriptBlock>] [-CheckpointPath <string>] [-ComputerName <string>] [-FromBeginning] [-IpThreshold <int>] [-NoAsync] [-RetentionDays <int>] [-SummaryIntervalSeconds <int>] [-SummaryPerIp] [-SummaryPerZone] [-WindowSeconds <int>] [-ZoneThreshold <int>] [<CommonParameters>]#Parameters
- Path string
- The path to the DNS log file.
- AlertAction ScriptBlock
- Alert callback invoked when thresholds are exceeded.
- CheckpointPath string
- Path to the checkpoint file.
- ComputerName string
- Domain controller name.
- FromBeginning SwitchParameter
- Reads existing log entries from the beginning when no checkpoint is present.
- IpThreshold int
- Maximum queries per IP within the window before alerting.
- NoAsync SwitchParameter
- Runs the operation synchronously.
- RetentionDays int
- Retention window for raw entries in days.
- SummaryIntervalSeconds int
- Interval in seconds for emitting summaries.
- SummaryPerIp SwitchParameter
- Emit rolling summary by IP instead of raw entries.
- SummaryPerZone SwitchParameter
- Emit rolling summary by zone instead of raw entries.
- WindowSeconds int
- Sliding window for alert thresholds in seconds.
- ZoneThreshold int
- Maximum queries per zone within the window before alerting.