TestimoX

API Reference

Command

Watch-ADXDnsLog

Namespace ADPlayground.PowerShell
Inputs
System.String

Watches a DNS debug log and emits entries as they appear.

Examples

Generated fallback example

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 requiredposition: 0pipeline: true (ByValue, ByPropertyName)aliases: FilePath
The path to the DNS log file.
AlertAction ScriptBlock optionalposition: namedpipeline: false
Alert callback invoked when thresholds are exceeded.
CheckpointPath string optionalposition: namedpipeline: false
Path to the checkpoint file.
ComputerName string optionalposition: namedpipeline: false
Domain controller name.
FromBeginning SwitchParameter optionalposition: namedpipeline: false
Reads existing log entries from the beginning when no checkpoint is present.
IpThreshold int optionalposition: namedpipeline: false
Maximum queries per IP within the window before alerting.
NoAsync SwitchParameter optionalposition: namedpipeline: false
Runs the operation synchronously.
RetentionDays int optionalposition: namedpipeline: false
Retention window for raw entries in days.
SummaryIntervalSeconds int optionalposition: namedpipeline: false
Interval in seconds for emitting summaries.
SummaryPerIp SwitchParameter optionalposition: namedpipeline: false
Emit rolling summary by IP instead of raw entries.
SummaryPerZone SwitchParameter optionalposition: namedpipeline: false
Emit rolling summary by zone instead of raw entries.
WindowSeconds int optionalposition: namedpipeline: false
Sliding window for alert thresholds in seconds.
ZoneThreshold int optionalposition: namedpipeline: false
Maximum queries per zone within the window before alerting.