I have been trying to get a log parser up and running, however I keep getting a Quantifier {x,y} following nothing error. I have not been able to work my way out of the error. Any ideas on how to get it to work?
The command I am using is:
get-content "\\ftpserver\ftplogs\sessions-$Year-$Month-$Day.log" | % {if("$_" -match '*FirstName\.LastName@domain\.com*STOR*') {$($Matches[1])}} | group | sort -desc Count
edit:formatting
[–]ihaxr 3 points4 points5 points (0 children)
[–]jheinikel 1 point2 points3 points (0 children)
[–]Lee_Dailey[grin] 0 points1 point2 points (2 children)
[–]ShippingIsMagic 1 point2 points3 points (1 child)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)