Extracting errors and warnings from a log file using PowerShell(tellingmachine.com)
submitted by
Klaus(755) 3 years, 6 months ago
This blog post shows a simple Powershell command that searches a log file for errors and warnings and adds the matched lines to either to the errors.txt file or to the warnings.txt files. It takes advantage of the most powerful operator in Powershell, which is the switch operator. In my example here I exported the log file from the Wonderware SMC logger.
|category: Tips & Tricks
|Views: 11
tags:
Tips another
Everyones tags:
Your Tags: