<?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 Powershell scripted input debug logging in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Powershell-scripted-input-debug-logging/m-p/525111#M3843</link>
    <description>&lt;P&gt;Does anyone know how to log INFO and WARN log_level events to &lt;STRONG&gt;$SplunkHome\var\log\splunk\splunk-powershell.ps1.log&lt;/STRONG&gt; or &lt;STRONG&gt;$SplunkHome\var\log\splunk\splunkd.log&lt;/STRONG&gt; for debug purposes using the powershell input?&lt;/P&gt;&lt;P&gt;Using the code below in the script terminates it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Write-Error -Message 'INFO test'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;10-16-2020 12:47:05.4859538-5 ERROR Executing script=&amp;amp; "$SplunkHome/etc/apps/foo/bin/foo.ps1" for stanza=foo failed with exception=INFO test&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script does run correctly. I would just like to have some debug options. Thanks.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Oct 2020 18:17:48 GMT</pubDate>
    <dc:creator>atownson</dc:creator>
    <dc:date>2020-10-16T18:17:48Z</dc:date>
    <item>
      <title>Powershell scripted input debug logging</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Powershell-scripted-input-debug-logging/m-p/525111#M3843</link>
      <description>&lt;P&gt;Does anyone know how to log INFO and WARN log_level events to &lt;STRONG&gt;$SplunkHome\var\log\splunk\splunk-powershell.ps1.log&lt;/STRONG&gt; or &lt;STRONG&gt;$SplunkHome\var\log\splunk\splunkd.log&lt;/STRONG&gt; for debug purposes using the powershell input?&lt;/P&gt;&lt;P&gt;Using the code below in the script terminates it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Write-Error -Message 'INFO test'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;10-16-2020 12:47:05.4859538-5 ERROR Executing script=&amp;amp; "$SplunkHome/etc/apps/foo/bin/foo.ps1" for stanza=foo failed with exception=INFO test&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script does run correctly. I would just like to have some debug options. Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 18:17:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Powershell-scripted-input-debug-logging/m-p/525111#M3843</guid>
      <dc:creator>atownson</dc:creator>
      <dc:date>2020-10-16T18:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell scripted input debug logging</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Powershell-scripted-input-debug-logging/m-p/533556#M4514</link>
      <description>&lt;P&gt;Did you ever work this out? I've tried Write-Warning, but the output didn't go into the log or into the indexed output&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 10:58:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Powershell-scripted-input-debug-logging/m-p/533556#M4514</guid>
      <dc:creator>jeremyhagand61</dc:creator>
      <dc:date>2020-12-18T10:58:53Z</dc:date>
    </item>
  </channel>
</rss>

