<?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 Add-on-Builder: How to Input-Interval in cron-format? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Add-on-Builder-How-to-Input-Interval-in-cron-format/m-p/600810#M104709</link>
    <description>&lt;P&gt;Hi all,&lt;BR /&gt;I'm trying to create a new input for our created RestAPI-Call.&lt;BR /&gt;As this call should only be executed once in a month (ticket-data) I struggle with the only available Interval-Option which is seconds and not crontab-format.&lt;BR /&gt;I further discovered that when setting interval in seconds having splunk restarted the counter of seconds starts from that point in time somehow that messes with a predicted input interval.&lt;BR /&gt;Question: Is it possible to use cron-entry in underlaying input.conf file in created AoB-App?&lt;BR /&gt;&lt;BR /&gt;Thanks for any feedback&lt;BR /&gt;&lt;BR /&gt;Lothar&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2022 14:59:55 GMT</pubDate>
    <dc:creator>LoMueller</dc:creator>
    <dc:date>2022-06-07T14:59:55Z</dc:date>
    <item>
      <title>Add-on-Builder: How to Input-Interval in cron-format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-on-Builder-How-to-Input-Interval-in-cron-format/m-p/600810#M104709</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;I'm trying to create a new input for our created RestAPI-Call.&lt;BR /&gt;As this call should only be executed once in a month (ticket-data) I struggle with the only available Interval-Option which is seconds and not crontab-format.&lt;BR /&gt;I further discovered that when setting interval in seconds having splunk restarted the counter of seconds starts from that point in time somehow that messes with a predicted input interval.&lt;BR /&gt;Question: Is it possible to use cron-entry in underlaying input.conf file in created AoB-App?&lt;BR /&gt;&lt;BR /&gt;Thanks for any feedback&lt;BR /&gt;&lt;BR /&gt;Lothar&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 14:59:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-on-Builder-How-to-Input-Interval-in-cron-format/m-p/600810#M104709</guid>
      <dc:creator>LoMueller</dc:creator>
      <dc:date>2022-06-07T14:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add-on-Builder: Input-Interval in cron-format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-on-Builder-How-to-Input-Interval-in-cron-format/m-p/600838#M104710</link>
      <description>&lt;P&gt;You could use checkpoints in order to not mess to much with time intervals. I've implemented something before that calls a REST API and saves the last data point date as a checkpoint and the next time I call it I just use the checkpoint as a starting date. In the add-on python logic you can use anything, in your case that could ticket id, ticket last update time, etc. There are helper functions that already help you accomplish this. This method also allows you to have more recent data to work with.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Some links that might be helpful:&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.6/AdvancedDev/ModInputsCheckpoint" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.6/AdvancedDev/ModInputsCheckpoint&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/AddonBuilder/4.1.0/UserGuide/PythonHelperFunctions" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/AddonBuilder/4.1.0/UserGuide/PythonHelperFunctions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you still want to go via the cron route there are some python libs (e.g. &lt;A href="http://pypi.python.org/pypi/croniter/" target="_blank"&gt;http://pypi.python.org/pypi/croniter/&lt;/A&gt;) that can convert cron into date time&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 11:14:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-on-Builder-How-to-Input-Interval-in-cron-format/m-p/600838#M104710</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2022-06-07T11:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add-on-Builder: Input-Interval in cron-format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-on-Builder-How-to-Input-Interval-in-cron-format/m-p/600840#M104711</link>
      <description>&lt;P&gt;Thanks for your hints; actually we do not use python-scripts (only Rest-Call).&lt;BR /&gt;As the Rest-API itself provides ability to define timerange to report on we simple need a defined schedule to perform the call.&lt;BR /&gt;Interval in seconds is not that best vehicle as by restarting splunk count starts at timepoint of restart.&lt;/P&gt;&lt;P&gt;To undstand you correct, cron-timing is not available/possible with AoB?&lt;BR /&gt;Or can I simply edit inputs.conf?&lt;/P&gt;&lt;P&gt;Lothar&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 11:16:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-on-Builder-How-to-Input-Interval-in-cron-format/m-p/600840#M104711</guid>
      <dc:creator>LoMueller</dc:creator>
      <dc:date>2022-06-07T11:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Add-on-Builder: Input-Interval in cron-format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-on-Builder-How-to-Input-Interval-in-cron-format/m-p/600844#M104714</link>
      <description>&lt;P&gt;As far as I know its just seconds. Also, looking into the docs on configuring inputs it just states seconds.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/AddonBuilder/4.1.0/UserGuide/Usetheaddon" target="_blank"&gt;https://docs.splunk.com/Documentation/AddonBuilder/4.1.0/UserGuide/Usetheaddon&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 11:28:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-on-Builder-How-to-Input-Interval-in-cron-format/m-p/600844#M104714</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2022-06-07T11:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Add-on-Builder: Input-Interval in cron-format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-on-Builder-How-to-Input-Interval-in-cron-format/m-p/600856#M104719</link>
      <description>&lt;P&gt;You can always just modify the inputs.conf interval entry to a cron setting.&lt;/P&gt;&lt;P&gt;For example for A&lt;I&gt;&lt;SPAN&gt;t&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;00&lt;/SPAN&gt;:&lt;SPAN class=""&gt;00&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;on day-of-month 1&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;interval=0 0 1 * *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 12:35:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-on-Builder-How-to-Input-Interval-in-cron-format/m-p/600856#M104719</guid>
      <dc:creator>Azeemering</dc:creator>
      <dc:date>2022-06-07T12:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Add-on-Builder: Input-Interval in cron-format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-on-Builder-How-to-Input-Interval-in-cron-format/m-p/601491#M104801</link>
      <description>&lt;P&gt;Thanks for your feedback.&lt;/P&gt;&lt;P&gt;Why does AoB then only provide seconds for the interval option and errors when trying to configure cron-formatted string?&lt;BR /&gt;Anybody able to put some light on this?&lt;/P&gt;&lt;P&gt;Lothar&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 08:43:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-on-Builder-How-to-Input-Interval-in-cron-format/m-p/601491#M104801</guid>
      <dc:creator>LoMueller</dc:creator>
      <dc:date>2022-06-13T08:43:00Z</dc:date>
    </item>
  </channel>
</rss>

