<?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: Why can't Splunk continuously index data from a powershell input? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-Splunk-continuously-index-data-from-a-powershell-input/m-p/395337#M70519</link>
    <description>&lt;P&gt;Hey@yutaka1005,&lt;/P&gt;

&lt;P&gt;As per the docs, default the script executes only once.&lt;BR /&gt;
To schedule the script, you can try using parameter &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;schedule=&amp;lt;cron&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Data/MonitorWindowsdatawithPowerShellscripts"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/Data/MonitorWindowsdatawithPowerShellscripts&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Let me know if this helps!!&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jan 2019 08:43:32 GMT</pubDate>
    <dc:creator>deepashri_123</dc:creator>
    <dc:date>2019-01-10T08:43:32Z</dc:date>
    <item>
      <title>Why can't Splunk continuously index data from a powershell input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-Splunk-continuously-index-data-from-a-powershell-input/m-p/395336#M70518</link>
      <description>&lt;P&gt;Splunk ver : 6.6.6&lt;BR /&gt;
OS : Linux 7&lt;/P&gt;

&lt;P&gt;Universal Forwarder ver : 6.6.6&lt;BR /&gt;
OS : Windows Server 2016&lt;/P&gt;

&lt;P&gt;I configured below &lt;CODE&gt;inputs.conf&lt;/CODE&gt; and &lt;CODE&gt;sample.ps1&lt;/CODE&gt; in the Universal Forwarder and Splunk indexed once, but after that, no more events were indexed.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;inputs.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[powershell://power_shell_sapmle]
script = . "$SplunkHome\etc\apps\sample_app\bin\sample.ps1"
interval = */1 * * * *
sourcetype = power_shell_sapmle
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;sample.ps1&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$Output = invoke-expression "wmic cpu list brief"
Write-Output $Output
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is my configuration wrong?&lt;/P&gt;

&lt;P&gt;Please someone help me.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 06:19:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-Splunk-continuously-index-data-from-a-powershell-input/m-p/395336#M70518</guid>
      <dc:creator>yutaka1005</dc:creator>
      <dc:date>2019-01-10T06:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't Splunk continuously index data from a powershell input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-Splunk-continuously-index-data-from-a-powershell-input/m-p/395337#M70519</link>
      <description>&lt;P&gt;Hey@yutaka1005,&lt;/P&gt;

&lt;P&gt;As per the docs, default the script executes only once.&lt;BR /&gt;
To schedule the script, you can try using parameter &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;schedule=&amp;lt;cron&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Data/MonitorWindowsdatawithPowerShellscripts"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/Data/MonitorWindowsdatawithPowerShellscripts&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Let me know if this helps!!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 08:43:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-Splunk-continuously-index-data-from-a-powershell-input/m-p/395337#M70519</guid>
      <dc:creator>deepashri_123</dc:creator>
      <dc:date>2019-01-10T08:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't Splunk continuously index data from a powershell input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-Splunk-continuously-index-data-from-a-powershell-input/m-p/395338#M70520</link>
      <description>&lt;P&gt;Thank you for answer!&lt;/P&gt;

&lt;P&gt;I did not check the manual properly ...&lt;BR /&gt;
It was very helpful.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 02:47:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-can-t-Splunk-continuously-index-data-from-a-powershell-input/m-p/395338#M70520</guid>
      <dc:creator>yutaka1005</dc:creator>
      <dc:date>2019-01-11T02:47:57Z</dc:date>
    </item>
  </channel>
</rss>

