Follow new lines appended to a log file
Build a paste-ready command, then review its compatibility and effects before running it.
Get-Content <file> -Tail 100 -WaitComplete required fields to copy the generated command.
read-onlyno known side effects Compatibility
WindowsVerified for Windows using powershell syntax.
Operational knowledgereview due 2027-01-19
RequirementsGet-ContentGet-Content must be installed and available on PATH.
Version supportGet-Content Current supported releasesVerified for windows using powershell syntax; consult compatibility notes for platform-specific differences.
Expected signals2026-07-23T10:41:19+02:00 GET / 200 18msRepresentative successful output; values vary with the selected target and system state.
Known errorsGet-Content: command not foundGet-Content is missing or is not available on PATH.
VerifyGet-Content {{file}} -Tail 100 -WaitThe output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01Get-ContentCommandRuns the Get-Content stage of this one-liner.
02<file>ParameterA value supplied in the Fill parameters section.
03-TailOptionConfigures Get-Content with the -Tail option.
04100ArgumentPasses 100 to Get-Content.
05-WaitOptionConfigures Get-Content with the -Wait option.
Example input
Get-Content C:\Logs\web\access.log -Tail 100 -Wait
Example output
2026-07-23T10:41:19+02:00 GET / 200 18ms
2026-07-23T10:41:21+02:00 GET /api/v1/commands 200 11ms
2026-07-23T10:41:22+02:00 GET /commands/exim-queue 200 14ms
Illustrative output — exact values vary by system and data.
Official sources