clinthuffman / PAL

Performance Analysis of Logs (PAL) tool
MIT License
481 stars 101 forks source link

Unexpected token 'Total[$i]' in expression or statement #34

Open TheAasgards opened 5 years ago

TheAasgards commented 5 years ago

Hi, I encounter this error when checking some Exchange server performance logs: Overall progress... Status: Applying thresholds, PAL 2.8.1 Progress: 82%... Applying thresholds, Client Access - LogicalDisk Disk Reads/sec

An error occurred on... Invoke-Expression -Command $sCode At C:\Program Files\PAL\PAL\PAL.ps1:4536 char:9 + Invoke-Expression -Command $sCode + ~~~~~~~~~ At line:5 char:80 + ... rites = $htVariables["CollectionOfLogicalDiskDiskWritessec"]Total[$i] + ~~~~~ Unexpected token 'Total[$i]' in expression or statement.

This happened more than once. I used autodetect for the threshold files:

I cannot find any log file in %temp% folder or in Pal folder, do I need to activate some logging in the config file?

clinthuffman commented 5 years ago

Please make sure you are running the latest version of PAL. This error sounds like an problem with one of the threshold files that auto-detect selected. I need to know which threshold file that auto-detect selected for you in order to track down and fix this bug. PAL always creates a log at %temp%\PAL.log. After hitting this error, open Windows Explorer and type %temp% in the path bar, press Enter and it will take you to your current Temp folder. Look for PAL.log there. Alternatively, you can upload your counter log to http://bit.ly/PalUpload, then I can try to reproduce the problem.

TheAasgards commented 4 years ago

PalAutoDetectObjectsFromCounterLogFile_5d892391-e908-46e2-9d87-2fbb45c7e2b8.txt Here is a log file from today - I got the same error. However the script was successful in the end so no hurry :)