Comments
-
I fixed this issue myself. When displaying output, here is what I changed: for($i=1; $i -le $total; $i++){ write-host "Statistic.$i : "$arrC[$i] write-host "Message.$i : " $arrN[$i] }
-
I understand this code is used for Log Parsing... But I'm regexing text in a separate file because there are specific types of errors I need to pull statistics for. Essentially, I'm shooting for a result that looks like this: POWERSHELL OUTPUT: Statistic: 315 Message: ClientAbortException Statistic: 127 Message:…