<?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: What cron expression is supported for the PowerShell Modular Input schedule in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/What-cron-expression-is-supported-for-the-PowerShell-Modular/m-p/282261#M53944</link>
    <description>&lt;P&gt;From trial and error, it seems that the cron expression supported here is the same as for scheduled alerts:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Alert/Definescheduledalerts#Schedule_the_alert"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Alert/Definescheduledalerts#Schedule_the_alert&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and that is the 5 field version corresponding to correspond to minute hour day-of-month month day-of-week. See the Wikipedia entry for Cron for details:&lt;BR /&gt;
&lt;A href="https://en.wikipedia.org/wiki/Cron#CRON_expression"&gt;https://en.wikipedia.org/wiki/Cron#CRON_expression&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I suspect the incorrect hint text comes from the fact that there is also a Splunk Add-on for Microsoft PowerShell (&lt;A href="https://splunkbase.splunk.com/app/1477/"&gt;https://splunkbase.splunk.com/app/1477/&lt;/A&gt;) that was implemented using Quartz.net (&lt;A href="http://www.quartz-scheduler.net/"&gt;http://www.quartz-scheduler.net/&lt;/A&gt;) which has a different cron expression syntax for cron triggers (&lt;A href="http://www.quartz-scheduler.net/documentation/quartz-2.x/tutorial/crontriggers.html"&gt;http://www.quartz-scheduler.net/documentation/quartz-2.x/tutorial/crontriggers.html&lt;/A&gt; ).&lt;/P&gt;

&lt;P&gt;It seems that the built-in PowerShell v3 Modular Input that comes with Splunk 6.3+ shares the same implementation as as other parts of the Splunk platform. The documentation for the PowerShell Modular Input: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/Data/MonitorWindowsdatawithPowerShellscripts"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/Data/MonitorWindowsdatawithPowerShellscripts&lt;/A&gt; uses the correct format for the examples although is still incorrectly includes a link to the Quartz.net implementation.&lt;/P&gt;

&lt;P&gt;It makes sense that Splunk would not want you to be triggering these scripts with a more granular time scale than minutes so the lack of seconds support seems to fit.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2016 22:19:34 GMT</pubDate>
    <dc:creator>martinho</dc:creator>
    <dc:date>2016-10-27T22:19:34Z</dc:date>
    <item>
      <title>What cron expression is supported for the PowerShell Modular Input schedule</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-cron-expression-is-supported-for-the-PowerShell-Modular/m-p/282259#M53942</link>
      <description>&lt;P&gt;When using Splunk Web to configure a new &lt;STRONG&gt;Powershell v3 Modular Input&lt;/STRONG&gt; the hint for the &lt;STRONG&gt;Cron Schedule&lt;/STRONG&gt; the hint text states &lt;EM&gt;A cron string specifying the schedule for execution: seconds minutes hours days-of-month month days-of-week years&lt;/EM&gt; but this does not seem to be a valid  &lt;A href="https://en.wikipedia.org/wiki/Cron#CRON_expression"&gt;Cron expression&lt;/A&gt;. What syntax is supported by Splunk for this feature. I am using Splunk 6.3.1.&lt;/P&gt;

&lt;P&gt;I'm asking this question so I can document the answer that I have found for easy future reference.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 02:55:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-cron-expression-is-supported-for-the-PowerShell-Modular/m-p/282259#M53942</guid>
      <dc:creator>martinho</dc:creator>
      <dc:date>2016-10-27T02:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: What cron expression is supported for the PowerShell Modular Input schedule</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-cron-expression-is-supported-for-the-PowerShell-Modular/m-p/282260#M53943</link>
      <description>&lt;P&gt;Quartz Scheduler Format, not Unix Standard. The doc has examples.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.quartz-scheduler.org/documentation/quartz-2.x/tutorials/crontrigger.html"&gt;http://www.quartz-scheduler.org/documentation/quartz-2.x/tutorials/crontrigger.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/AddOns/released/MSPowerShell/Configuration"&gt;http://docs.splunk.com/Documentation/AddOns/released/MSPowerShell/Configuration&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 12:08:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-cron-expression-is-supported-for-the-PowerShell-Modular/m-p/282260#M53943</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2016-10-27T12:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: What cron expression is supported for the PowerShell Modular Input schedule</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-cron-expression-is-supported-for-the-PowerShell-Modular/m-p/282261#M53944</link>
      <description>&lt;P&gt;From trial and error, it seems that the cron expression supported here is the same as for scheduled alerts:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Alert/Definescheduledalerts#Schedule_the_alert"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Alert/Definescheduledalerts#Schedule_the_alert&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and that is the 5 field version corresponding to correspond to minute hour day-of-month month day-of-week. See the Wikipedia entry for Cron for details:&lt;BR /&gt;
&lt;A href="https://en.wikipedia.org/wiki/Cron#CRON_expression"&gt;https://en.wikipedia.org/wiki/Cron#CRON_expression&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I suspect the incorrect hint text comes from the fact that there is also a Splunk Add-on for Microsoft PowerShell (&lt;A href="https://splunkbase.splunk.com/app/1477/"&gt;https://splunkbase.splunk.com/app/1477/&lt;/A&gt;) that was implemented using Quartz.net (&lt;A href="http://www.quartz-scheduler.net/"&gt;http://www.quartz-scheduler.net/&lt;/A&gt;) which has a different cron expression syntax for cron triggers (&lt;A href="http://www.quartz-scheduler.net/documentation/quartz-2.x/tutorial/crontriggers.html"&gt;http://www.quartz-scheduler.net/documentation/quartz-2.x/tutorial/crontriggers.html&lt;/A&gt; ).&lt;/P&gt;

&lt;P&gt;It seems that the built-in PowerShell v3 Modular Input that comes with Splunk 6.3+ shares the same implementation as as other parts of the Splunk platform. The documentation for the PowerShell Modular Input: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/Data/MonitorWindowsdatawithPowerShellscripts"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/Data/MonitorWindowsdatawithPowerShellscripts&lt;/A&gt; uses the correct format for the examples although is still incorrectly includes a link to the Quartz.net implementation.&lt;/P&gt;

&lt;P&gt;It makes sense that Splunk would not want you to be triggering these scripts with a more granular time scale than minutes so the lack of seconds support seems to fit.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 22:19:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-cron-expression-is-supported-for-the-PowerShell-Modular/m-p/282261#M53944</guid>
      <dc:creator>martinho</dc:creator>
      <dc:date>2016-10-27T22:19:34Z</dc:date>
    </item>
  </channel>
</rss>

