<?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: Powershell script input on a schedule in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-input-on-a-schedule/m-p/369939#M67133</link>
    <description>&lt;P&gt;its the default behavior to run scripted inputs on forwarder start, i am not sure however how (and why) to disable it&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2017 14:55:41 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2017-05-09T14:55:41Z</dc:date>
    <item>
      <title>Powershell script input on a schedule</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-input-on-a-schedule/m-p/369938#M67132</link>
      <description>&lt;P&gt;Not sure if this is a bug or just weird behaviour, I don't seem to be able to work around it.&lt;/P&gt;

&lt;P&gt;I have loads of powershell windows inputs running on my UFs but they are running on UF restart as well as on their schedule(s).&lt;BR /&gt;
{code}&lt;BR /&gt;
[powershell://name]&lt;BR /&gt;
script = &amp;amp; stuff&lt;BR /&gt;
schedule = 0 23 15 * * *&lt;BR /&gt;
source = PowerShell&lt;BR /&gt;
sourcetype = PowerShell:Name&lt;BR /&gt;
index = my index&lt;BR /&gt;
interval =&lt;BR /&gt;
{code}&lt;/P&gt;

&lt;P&gt;I want this ONLY to run at 15:23. &lt;BR /&gt;
What I am seeing is that if the UF is restarted, it's run on startup, AND it's run on the schedule i tell it.&lt;BR /&gt;
i &lt;EM&gt;don't&lt;/EM&gt; want it running on UF startup.&lt;/P&gt;

&lt;P&gt;I believe i'm using the quartz notation and that bit is working as intended, but I don't want this input to be run if the UF is restarted.&lt;/P&gt;

&lt;P&gt;Why is this happening ?&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 14:30:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-input-on-a-schedule/m-p/369938#M67132</guid>
      <dc:creator>gavsdavs_GR</dc:creator>
      <dc:date>2017-05-09T14:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script input on a schedule</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-input-on-a-schedule/m-p/369939#M67133</link>
      <description>&lt;P&gt;its the default behavior to run scripted inputs on forwarder start, i am not sure however how (and why) to disable it&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 14:55:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-input-on-a-schedule/m-p/369939#M67133</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-05-09T14:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script input on a schedule</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-input-on-a-schedule/m-p/369940#M67134</link>
      <description>&lt;P&gt;That isn't very desirable. If i supply a schedule, then &lt;EM&gt;that's&lt;/EM&gt; when i want it to run, not whenever the UF is restarted.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 15:22:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-input-on-a-schedule/m-p/369940#M67134</guid>
      <dc:creator>gavsdavs_GR</dc:creator>
      <dc:date>2017-05-09T15:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script input on a schedule</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-input-on-a-schedule/m-p/369941#M67135</link>
      <description>&lt;P&gt;I believe this is a known issue. Please raise a case with Splunk Support quoting SPL-141385.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 07:34:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-input-on-a-schedule/m-p/369941#M67135</guid>
      <dc:creator>meglin_splunk</dc:creator>
      <dc:date>2017-05-26T07:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script input on a schedule</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-input-on-a-schedule/m-p/369942#M67136</link>
      <description>&lt;P&gt;Any update on this ... has it been resolved by Splunk ?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 11:49:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-input-on-a-schedule/m-p/369942#M67136</guid>
      <dc:creator>MayurSplunk</dc:creator>
      <dc:date>2018-09-05T11:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script input on a schedule</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-input-on-a-schedule/m-p/369943#M67137</link>
      <description>&lt;P&gt;Please share if the issue has been resolved in later releases.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 11:50:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-input-on-a-schedule/m-p/369943#M67137</guid>
      <dc:creator>MayurSplunk</dc:creator>
      <dc:date>2018-09-05T11:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script input on a schedule</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-input-on-a-schedule/m-p/690591#M114897</link>
      <description>&lt;P&gt;Any update? This issue still persists in 9.1.x version (and I assume in 9.2.x also because there is no information in release notes/fixed issues). Now it's very difficult to control the execution of scripts.&lt;/P&gt;&lt;P&gt;[script://] input has this feature implemented, but [powershell://] don't.&lt;/P&gt;&lt;PRE&gt;* NOTE: when you specify a cron schedule, the input does not run the
  script on start-up.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 09:50:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-input-on-a-schedule/m-p/690591#M114897</guid>
      <dc:creator>psla</dc:creator>
      <dc:date>2024-06-13T09:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script input on a schedule</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-input-on-a-schedule/m-p/704422#M116483</link>
      <description>&lt;P&gt;Has anyone figured out how to disable this behavior? We would like the powershell to run only at scheduled time not everytime the UF is started.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 15:16:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-input-on-a-schedule/m-p/704422#M116483</guid>
      <dc:creator>cpaulraj</dc:creator>
      <dc:date>2024-11-14T15:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script input on a schedule</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-input-on-a-schedule/m-p/704423#M116484</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253132"&gt;@cpaulraj&lt;/a&gt;&lt;/SPAN&gt; ,&lt;/P&gt;
&lt;P&gt;I’m a Community Moderator in the Splunk Community.&lt;/P&gt;
&lt;P&gt;This question was posted 7 years ago, so it might not get the attention you need for your question to be answered. We recommend that you post a new question so that your issue can get the &amp;nbsp;visibility it deserves. To increase your chances of getting help from the community, follow &lt;A href="http://docs.splunk.com/Documentation/Splunkbase/splunkbase/Answers/Questions" target="_blank"&gt;&lt;U&gt;these guidelines&lt;/U&gt;&lt;/A&gt; in the Splunk Answers User Manual when creating your post.&lt;/P&gt;
&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 15:19:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Powershell-script-input-on-a-schedule/m-p/704423#M116484</guid>
      <dc:creator>DanielPi</dc:creator>
      <dc:date>2024-11-14T15:19:04Z</dc:date>
    </item>
  </channel>
</rss>

