Since switching focus to the cloud I am doing more and more pure CLI admin of Windows. One of the pains of windows admin from a console is accessing the windows eventlog. Since they are not simple text files like Linux, special PowerShell CMDLets must be used to retrieve them.
Due to the frequency of needing to do it, one of the biggest challenges is tailing an eventlog while waiting for results.
When following a text log, I simply use
Get-Content logfilename -wait to emulate the Linux command
tail -f logfilename
So I went in search of what I thought would be a quick find, but all my finds were all way to long and involved - so I made a new oneliner that follows the principles of Mission Impossible Coding.