<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: TA-sos_win: Powershell Script Error in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-sos-win-Powershell-Script-Error/m-p/112650#M8214</link>
    <description>&lt;P&gt;It's intermittent in nature. e.g.&lt;/P&gt;

&lt;P&gt;index=_internal ERROR greater | rex "2013 (?&lt;TIME_OF_ERROR&gt;[^\s]+)\s" | stats values(time_of_error)&lt;/TIME_OF_ERROR&gt;&lt;/P&gt;

&lt;P&gt;00:30:06.232&lt;BR /&gt;
00:42:06.072&lt;BR /&gt;
00:42:16.605&lt;BR /&gt;
01:30:08.017&lt;BR /&gt;
01:30:08.235&lt;BR /&gt;
01:50:02.871&lt;BR /&gt;
01:55:03.419&lt;BR /&gt;
02:10:02.950&lt;BR /&gt;
02:10:03.575&lt;BR /&gt;
02:15:03.380&lt;BR /&gt;
...&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 15:03:18 GMT</pubDate>
    <dc:creator>rturk</dc:creator>
    <dc:date>2020-09-28T15:03:18Z</dc:date>
    <item>
      <title>TA-sos_win: Powershell Script Error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-sos-win-Powershell-Script-Error/m-p/112648#M8212</link>
      <description>&lt;P&gt;Hello Splunkers and/or Powershell Gurus!&lt;/P&gt;

&lt;P&gt;I'm getting a bunch of errors when using the Splunk-on-Splunk TA for the collection of diagnostic data. I have enabled Powershell script execution, and I'm using the app as packaged deployed by a Cluster Master to an indexer.&lt;/P&gt;

&lt;P&gt;Each of the lines below is prefixed with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10-24-2013 08:30:06.594 +1100 ERROR ExecProcessor - message from ""C:\Program Files\Splunk\etc\slave-apps\TA-sos_win\bin\sospowershell.cmd" ps_sos.ps1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The reported error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error formatting a string: Index (zero based) must be greater than or equal to 
zero and less than the size of the argument list..
At C:\Program 
Files\Splunk\etc\slave-apps\TA-sos_win\bin\powershell\ps_sos.ps1:17 char:5
 +     $CMDLINE = "{0}" -f ($CMDLINE -replace '"',"")
 +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     + CategoryInfo          : InvalidOperation: ({0}:String) [], RuntimeExcept 
    ion
     + FullyQualifiedErrorId : FormatError
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any &amp;amp; all help greatly appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2013 00:02:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-sos-win-Powershell-Script-Error/m-p/112648#M8212</guid>
      <dc:creator>rturk</dc:creator>
      <dc:date>2013-10-24T00:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: TA-sos_win: Powershell Script Error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-sos-win-Powershell-Script-Error/m-p/112649#M8213</link>
      <description>&lt;P&gt;What version of the S.o.S TA for Windows are you running?&lt;/P&gt;

&lt;P&gt;Also: Are these errors happening on every 5s-interval run of the scripted input or are they happening intermittently? If the latter, what seems to be the frequency?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2013 00:07:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-sos-win-Powershell-Script-Error/m-p/112649#M8213</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2013-10-24T00:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: TA-sos_win: Powershell Script Error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-sos-win-Powershell-Script-Error/m-p/112650#M8214</link>
      <description>&lt;P&gt;It's intermittent in nature. e.g.&lt;/P&gt;

&lt;P&gt;index=_internal ERROR greater | rex "2013 (?&lt;TIME_OF_ERROR&gt;[^\s]+)\s" | stats values(time_of_error)&lt;/TIME_OF_ERROR&gt;&lt;/P&gt;

&lt;P&gt;00:30:06.232&lt;BR /&gt;
00:42:06.072&lt;BR /&gt;
00:42:16.605&lt;BR /&gt;
01:30:08.017&lt;BR /&gt;
01:30:08.235&lt;BR /&gt;
01:50:02.871&lt;BR /&gt;
01:55:03.419&lt;BR /&gt;
02:10:02.950&lt;BR /&gt;
02:10:03.575&lt;BR /&gt;
02:15:03.380&lt;BR /&gt;
...&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:03:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-sos-win-Powershell-Script-Error/m-p/112650#M8214</guid>
      <dc:creator>rturk</dc:creator>
      <dc:date>2020-09-28T15:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: TA-sos_win: Powershell Script Error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-sos-win-Powershell-Script-Error/m-p/112651#M8215</link>
      <description>&lt;P&gt;What version of the S.o.S TA for Windows are you running?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2013 00:24:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-sos-win-Powershell-Script-Error/m-p/112651#M8215</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2013-10-24T00:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: TA-sos_win: Powershell Script Error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-sos-win-Powershell-Script-Error/m-p/112652#M8216</link>
      <description>&lt;P&gt;version = 2.3.1&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2013 00:54:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-sos-win-Powershell-Script-Error/m-p/112652#M8216</guid>
      <dc:creator>rturk</dc:creator>
      <dc:date>2013-10-24T00:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: TA-sos_win: Powershell Script Error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-sos-win-Powershell-Script-Error/m-p/112653#M8217</link>
      <description>&lt;P&gt;&lt;STRONG&gt;UPDATE&lt;/STRONG&gt;: The latest version of the &lt;A href="http://apps.splunk.com/app/748/"&gt;S.o.S app&lt;/A&gt; and of its &lt;A href="http://apps.splunk.com/app/1177/"&gt;add-on for Windows&lt;/A&gt; have now been released and fix this particular issue.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Please upgrade your TA to version 2.3.2. We have made improvements in that version to address this particular error. From the release notes:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;[SUP-691] Fixed an issue where the ps_sos.ps1 scripted input produced format errors when trying to set $CMDLINE.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Do note, however, that to the best of our knowledge these errors typically bubble up when the execution of the script fails because the Get-Process cmdlet somehow fails to return output. We are still tracking down the root cause for that particular problem, which will cause ps_sos.ps1 to intermittently fail to return output.&lt;/P&gt;

&lt;P&gt;The bug fixes in version 2.3.2 should ensure that ps_sos.ps1 will handle these errors more gracefully.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2013 01:16:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-sos-win-Powershell-Script-Error/m-p/112653#M8217</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2013-10-24T01:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: TA-sos_win: Powershell Script Error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-sos-win-Powershell-Script-Error/m-p/112654#M8218</link>
      <description>&lt;P&gt;Hi Hexx - Sorry for the delay in getting back to you. Unfortunately the upgrade didn't help and we're still seeing a LOT of the above errors. Being that we know what the cause is and it's a known bug, I'll mark this as answered, but I look forward to the next release where (hopefully) it'll be fixed.&lt;/P&gt;

&lt;P&gt;Thanks again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2013 05:30:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-sos-win-Powershell-Script-Error/m-p/112654#M8218</guid>
      <dc:creator>rturk</dc:creator>
      <dc:date>2013-11-07T05:30:05Z</dc:date>
    </item>
  </channel>
</rss>

