<?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: Multiple instances of rest.py start while there is only one stanza active (Twitter API) in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177703#M17331</link>
    <description>&lt;P&gt;I can't replicate this , and I have a very diverse set of inputs.conf rest stanzas setup ,  and I have never heard of this from any other users before. So this is firmly in the "scratching my head" category. Have you changed any of the python code perchance ?&lt;/P&gt;</description>
    <pubDate>Wed, 28 May 2014 18:22:47 GMT</pubDate>
    <dc:creator>Damien_Dallimor</dc:creator>
    <dc:date>2014-05-28T18:22:47Z</dc:date>
    <item>
      <title>Multiple instances of rest.py start while there is only one stanza active (Twitter API)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177695#M17323</link>
      <description>&lt;P&gt;My REST API works fine, apart from the fact that new processes of rest.py get launched whithout any clear reason why this happens. This is causing Splunk to hammer twitter.com API and in no time I hit the rate limit (max 180 hits per 15 minutes) and I get blocked for a while.&lt;/P&gt;

&lt;P&gt;The processes:&lt;BR /&gt;
&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;
splunk   12085 1  0 13:46 00:00:00 python /opt/splunk/etc/apps/rest_ta/bin/rest.py &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;
splunk   12095 1  0 13:46 00:00:00 python /opt/splunk/etc/apps/rest_ta/bin/rest.py &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;
splunk   12100 1  0 13:46 00:00:00 python /opt/splunk/etc/apps/rest_ta/bin/rest.py &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;
splunk   12107 1  1 13:46 00:00:00 python /opt/splunk/etc/apps/rest_ta/bin/rest.py&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;
splunk   12113 1  1 13:46 00:00:00 python /opt/splunk/etc/apps/rest_ta/bin/rest.py&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;
splunk   12118 1  1 13:46 00:00:00 python /opt/splunk/etc/apps/rest_ta/bin/rest.py&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;
splunk   12126 1  2 13:46 00:00:00 python /opt/splunk/etc/apps/rest_ta/bin/rest.py&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt;
splunk   12137 1  3 13:46 00:00:00 python /opt/splunk/etc/apps/rest_ta/bin/rest.py&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;BR /&gt;
&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;
&lt;/P&gt;&lt;HR /&gt;&lt;BR /&gt;
The debug log clearly shows the processes getting started:&lt;BR /&gt;&lt;BR /&gt;
&lt;EM&gt;05-25-2014 13:25:27.038 +0200 DEBUG ExecProcessor - cmd='python /opt/splunk/etc/apps/rest_ta/bin/rest.py' Added to run queue; unique_&lt;/EM&gt;&lt;EM&gt;id=26&lt;/EM&gt;&lt;EM&gt;&lt;BR /&gt;&lt;BR /&gt;
05-25-2014 13:25:27.038 +0200 INFO  ExecProcessor - New scheduled exec process: python /opt/splunk/etc/apps/rest_ta/bin/rest.py&lt;BR /&gt;&lt;BR /&gt;
05-25-2014 13:25:27.038 +0200 INFO  ExecProcessor -     interval: run once&lt;BR /&gt;&lt;BR /&gt;
05-25-2014 13:25:29.525 +0200 DEBUG ExecProcessor - cmd='python /opt/splunk/etc/apps/rest_ta/bin/rest.py' Added to run queue; unique_&lt;/EM&gt;&lt;EM&gt;id=27&lt;/EM&gt;&lt;EM&gt;&lt;BR /&gt;&lt;BR /&gt;
05-25-2014 13:25:29.525 +0200 INFO  ExecProcessor - New scheduled exec process: python /opt/splunk/etc/apps/rest_ta/bin/rest.py&lt;BR /&gt;&lt;BR /&gt;
05-25-2014 13:25:29.525 +0200 INFO  ExecProcessor -     interval: run once&lt;/EM&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;...as you can see there are only a few seconds between the two ExecProcessor instances and goes on and on until I disable the REST data input.&lt;/P&gt;

&lt;P&gt;I would like to see only one active process that only talks to Twitter every &lt;EM&gt;polling_interval&lt;/EM&gt;.&lt;/P&gt;

&lt;P&gt;Any help is welcome. &lt;/P&gt;

&lt;P&gt;Ah yes... Splunk version=6.1.1, REST API version: 1.3.4.&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
Peter&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:43:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177695#M17323</guid>
      <dc:creator>vlaamseoverheid</dc:creator>
      <dc:date>2020-09-28T16:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple instances of rest.py start while there is only one stanza active (Twitter API)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177696#M17324</link>
      <description>&lt;P&gt;Stop Splunk. Ensure there are no rest.py processes running. Ensure that you have only 1 single REST stanza configured and enabled. Start Splunk. Do you still see multiple rest.py processes running ?&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2014 15:13:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177696#M17324</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2014-05-27T15:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple instances of rest.py start while there is only one stanza active (Twitter API)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177697#M17325</link>
      <description>&lt;P&gt;See if this shows the multiple rest.py stanzas:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/$SPLUNK_HOME$/bin/splunk btool inputs list|grep rest.py
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 May 2014 15:41:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177697#M17325</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2014-05-27T15:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple instances of rest.py start while there is only one stanza active (Twitter API)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177698#M17326</link>
      <description>&lt;P&gt;Thanks for your time Damien. This problem occurs even with only 1 single REST stanza configured and enabled. So yes I still see them, but for the record, I will remove all and start from scratch. Will get back to you soon.&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2014 06:30:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177698#M17326</guid>
      <dc:creator>vlaamseoverheid</dc:creator>
      <dc:date>2014-05-28T06:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple instances of rest.py start while there is only one stanza active (Twitter API)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177699#M17327</link>
      <description>&lt;P&gt;Thanks jkat54, will give that a try, will be back soon.&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2014 06:31:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177699#M17327</guid>
      <dc:creator>vlaamseoverheid</dc:creator>
      <dc:date>2014-05-28T06:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple instances of rest.py start while there is only one stanza active (Twitter API)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177700#M17328</link>
      <description>&lt;P&gt;jkat54, this command does not show any output, as the script (rest.py) is not shown in the inputs.conf file (it is called somewhere else by the Splunk REST API).&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2014 15:09:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177700#M17328</guid>
      <dc:creator>vlaamseoverheid</dc:creator>
      <dc:date>2014-05-28T15:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple instances of rest.py start while there is only one stanza active (Twitter API)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177701#M17329</link>
      <description>&lt;P&gt;Damien, I have done the exercise again and I must say that it does happen even with only 1 REST stanza configured and enabled.&lt;/P&gt;

&lt;P&gt;By the way, the host is a fresh Debian with all updates installed.&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2014 15:17:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177701#M17329</guid>
      <dc:creator>vlaamseoverheid</dc:creator>
      <dc:date>2014-05-28T15:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple instances of rest.py start while there is only one stanza active (Twitter API)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177702#M17330</link>
      <description>&lt;P&gt;Damien, still happens after reinstalling the app and configuration completely (rm -Rf style).  Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2014 15:23:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177702#M17330</guid>
      <dc:creator>vlaamseoverheid</dc:creator>
      <dc:date>2014-05-28T15:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple instances of rest.py start while there is only one stanza active (Twitter API)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177703#M17331</link>
      <description>&lt;P&gt;I can't replicate this , and I have a very diverse set of inputs.conf rest stanzas setup ,  and I have never heard of this from any other users before. So this is firmly in the "scratching my head" category. Have you changed any of the python code perchance ?&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2014 18:22:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177703#M17331</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2014-05-28T18:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple instances of rest.py start while there is only one stanza active (Twitter API)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177704#M17332</link>
      <description>&lt;P&gt;Hi Damien, I have copied everything (api, REST stanza's)onto another Splunk server (running 6.0.3) and there it seems to run stable. Not sure what is wrong with that 6.1.1 instance but I guess we can leave it for now, though I don't dare to upgrade to 6.1.1 on that other server. Thanks for your time so far! What I will do at a later stage, is install a new server from scratch (format/OS Debian "wheezy"/Splunk 6.1.1/API 1.3.4/Stanzas) and comment on the thread again. Note that I have not changed the code and even reinstalled the REST API multiple times. To be continued..&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2014 11:44:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177704#M17332</guid>
      <dc:creator>vlaamseoverheid</dc:creator>
      <dc:date>2014-05-30T11:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple instances of rest.py start while there is only one stanza active (Twitter API)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177705#M17333</link>
      <description>&lt;P&gt;Damien, I have installed another clean instance of 6.1.1 on  yet another fresh Debian. Same issue.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2014 00:07:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177705#M17333</guid>
      <dc:creator>vlaamseoverheid</dc:creator>
      <dc:date>2014-06-02T00:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple instances of rest.py start while there is only one stanza active (Twitter API)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177706#M17334</link>
      <description>&lt;P&gt;Damien, &lt;/P&gt;

&lt;P&gt;Is this perhaps a Debian issue?  &lt;/P&gt;

&lt;P&gt;I am having this problem as well.  I have been researching forums and boards for the answer and I haven't found anyone who has resolved it yet.  &lt;/P&gt;

&lt;P&gt;One common thread is that it seems that this seen on debian installs.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 17:33:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177706#M17334</guid>
      <dc:creator>45bpever</dc:creator>
      <dc:date>2019-03-01T17:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple instances of rest.py start while there is only one stanza active (Twitter API)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177707#M17335</link>
      <description>&lt;P&gt;I see this on my Debian 16.04 and 18.04 installs with both Splunk 6.6.5 and Splunk 7.2.4.&lt;/P&gt;

&lt;P&gt;Fresh installs, no other data inputs and I get piled up rest.py processes.  &lt;/P&gt;

&lt;P&gt;From what I can tell is that it appears that Splunk is scheduling rest.py to run via its scheduler, but the rest.py script assumes that it is a run-once instance, since it loops after starting.&lt;/P&gt;

&lt;P&gt;This seems to be a workaround but it is modifying the logic of the baboonbones code.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/389392/issue-with-restpy-not-closing-and-running-out-of-m.html"&gt;https://answers.splunk.com/answers/389392/issue-with-restpy-not-closing-and-running-out-of-m.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 17:38:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Multiple-instances-of-rest-py-start-while-there-is-only-one/m-p/177707#M17335</guid>
      <dc:creator>45bpever</dc:creator>
      <dc:date>2019-03-01T17:38:40Z</dc:date>
    </item>
  </channel>
</rss>

