<?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: interval as a data input parameter in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/interval-as-a-data-input-parameter/m-p/703451#M116328</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260286"&gt;@shai&lt;/a&gt;&amp;nbsp;have you also tried using cron job? Yes we need to define modinput on the&amp;nbsp;&lt;SPAN&gt;inputs.conf.spec to get that populated on UI.&lt;BR /&gt;Can you also try with&amp;nbsp;local/inputs.conf?&amp;nbsp; What version of splunk are&amp;nbsp; you running? I don't recall this must be an old known &lt;A href="https://community.splunk.com/t5/Getting-Data-In/splunk-winprintmon-exe-splunk-winPrintMon-monitorHost/m-p/680673" target="_self"&gt;issue&lt;/A&gt; for windows. I recommend reaching out to support if your are stuck.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;If this Helps, Please Upvote.&lt;/P&gt;</description>
    <pubDate>Sun, 03 Nov 2024 21:07:26 GMT</pubDate>
    <dc:creator>sainag_splunk</dc:creator>
    <dc:date>2024-11-03T21:07:26Z</dc:date>
    <item>
      <title>interval as a data input parameter</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/interval-as-a-data-input-parameter/m-p/703441#M116327</link>
      <description>&lt;P&gt;I want my customer to be able to set the "interval" and control how frequent the module runs.&lt;/P&gt;&lt;P&gt;I started with this:&lt;/P&gt;&lt;P&gt;default/inputs.conf&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;[app_name]
interval = 43200&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and it worked as a default fallback, but once I added it to inputs.conf.spec, things started to break&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[app_name://&amp;lt;name&amp;gt;]
interval = &amp;lt;integer&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The value was ignored. I tried 30 for every 30 seconds and tracked logs. further more I had this log message in my server:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Ignoring parameter "interval" for modular input "app_name" when scheduling the runtime for script="/opt/splunk/etc/apps/app_name/bin/script_name.py". This means potentially Splunk won't be restarting it in case it gets terminated.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the way to expose "interval" to end user?&lt;BR /&gt;(Ideally in "more options" at the Add Input UI. )&lt;BR /&gt;&lt;BR /&gt;&lt;/P&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;</description>
      <pubDate>Sun, 03 Nov 2024 15:08:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/interval-as-a-data-input-parameter/m-p/703441#M116327</guid>
      <dc:creator>shai</dc:creator>
      <dc:date>2024-11-03T15:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: interval as a data input parameter</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/interval-as-a-data-input-parameter/m-p/703451#M116328</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260286"&gt;@shai&lt;/a&gt;&amp;nbsp;have you also tried using cron job? Yes we need to define modinput on the&amp;nbsp;&lt;SPAN&gt;inputs.conf.spec to get that populated on UI.&lt;BR /&gt;Can you also try with&amp;nbsp;local/inputs.conf?&amp;nbsp; What version of splunk are&amp;nbsp; you running? I don't recall this must be an old known &lt;A href="https://community.splunk.com/t5/Getting-Data-In/splunk-winprintmon-exe-splunk-winPrintMon-monitorHost/m-p/680673" target="_self"&gt;issue&lt;/A&gt; for windows. I recommend reaching out to support if your are stuck.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;If this Helps, Please Upvote.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2024 21:07:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/interval-as-a-data-input-parameter/m-p/703451#M116328</guid>
      <dc:creator>sainag_splunk</dc:creator>
      <dc:date>2024-11-03T21:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: interval as a data input parameter</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/interval-as-a-data-input-parameter/m-p/704038#M116445</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/187813"&gt;@sainag_splunk&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;not sure what you meant by using cron job... when interval is defined in &lt;SPAN&gt;default/inputs.conf it is already activating a crod job behind the scenes... only when exposed to UI thorugh&amp;nbsp;inputs.conf.spec it stops doing so...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;local/inputs.conf get's populated alright so idk what did you mean by trying it... after the user populates in the UI it is written into local/inputs.conf and then nothing happens.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I use splunk 9.2.1 over linux.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&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;</description>
      <pubDate>Sun, 10 Nov 2024 12:06:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/interval-as-a-data-input-parameter/m-p/704038#M116445</guid>
      <dc:creator>shai</dc:creator>
      <dc:date>2024-11-10T12:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: interval as a data input parameter</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/interval-as-a-data-input-parameter/m-p/704041#M116446</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260286"&gt;@shai&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Looking at&amp;nbsp;&lt;A href="https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/custominputs/modinputsconfspec/" target="_self"&gt;https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/custominputs/modinputsconfspec/&lt;/A&gt;, the interval setting should "just work;" however, the use_single_instance scheme parameter controls its behavior.&lt;/P&gt;&lt;P&gt;Is use_single_instance set to false in your modular input's scheme? E.g.:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;scheme&amp;gt;
    &amp;lt;!-- ... --&amp;gt;
    &amp;lt;use_single_instance&amp;gt;false&amp;lt;/use_single_instance&amp;gt;
    &amp;lt;!-- ... --&amp;gt;
&amp;lt;/scheme&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2024 16:36:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/interval-as-a-data-input-parameter/m-p/704041#M116446</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2024-11-10T16:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: interval as a data input parameter</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/interval-as-a-data-input-parameter/m-p/704160#M116464</link>
      <description>&lt;P&gt;That's helpful to understand the problem!&lt;/P&gt;&lt;P&gt;Still I don't fully understand the solusion.&lt;/P&gt;&lt;P&gt;What are my options if I want to expose interval to client and still keep application single instance?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 13:04:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/interval-as-a-data-input-parameter/m-p/704160#M116464</guid>
      <dc:creator>shai</dc:creator>
      <dc:date>2024-11-12T13:04:25Z</dc:date>
    </item>
  </channel>
</rss>

