Submit a ticketCall us

Have You Auto Renewed? If not, you're missing out.
The SolarWinds Renewal Program comes with a host of benefits including the most recent product updates, 24/7 technical support, virtual instructor-led training and more. Experience all of this with the convenience of Auto Renewal, and never worry about missing any of these great benefits. Learn More.

Home > Success Center > Server & Application Monitor (SAM) > Log Parser monitor shows unknown on Windows 2008 and script fails

Log Parser monitor shows unknown on Windows 2008 and script fails

Updated December 28, 2017

Overview

When using the Log Parser (Powershell) monitor against a 2008 R2 node and the file to be parsed is empty or has only one line in it, the component "Total number of strings found" says unknown. When that same template is applied against a Windows 2012 node, the parser correctly works.

 

When the script is run on the 2008 node, it fails with one of the following errors:

  • If the file has 1 line: "Array assignment failed because index '1' was out of range." 
  • If the file has 0 lines: "Array assignment failed because index '0' was out of range."

 

These are RuntimeExcept errors of IndexOutOfRange.

 

image.png

Environment

  • SAM 6.5 and earlier
  • The logs to be parsed are on Windows 2008 R2
  • The file to be parsed is empty or has only 1 line in it

Cause 

Unknown

Resolution

The file must have 2 or more lines in it.  The lines do not need to contain the string that is being searched.

 

 

Last modified

Tags

Classifications

Public