Search This Blog

Friday, 10 June 2016

powershell tail log file

Following command tails the log file (useful to see that a load balancer has de-pooled a node)

Get-Content -Path .\u_ex160610.log -Last 30 - Wait

IIS does not update logs in real time (I read 2 minutes, but anecdotally I'm not convinced) so if your in a rush you can

netsh http flush logbuffer 
Get-Content -Path .\u_ex160610.log -Last 30

No comments:

Post a Comment