Stream log files with Powershell

Just learned this, in case you didn’t know, on Windows you can easily stream log files with:

Get-Content -Path “C:\application.log” -Wait

If the file you are tailing already has a lot of contents, use parameter -tail to  start listening at the end of the file.

I like it, it’s a free and simple alternative that doesn’t to tools like BareTail.

Theme music for this blog post

Advertisements
Stream log files with Powershell

One thought on “Stream log files with Powershell

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s