<?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: Why am I getting error &amp;quot;Cannot find item for POST arg_name=...&amp;quot; trying to update inputs.conf (scripted inputs) through setup.xml? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-find-item-for-POST-arg-name/m-p/229747#M44722</link>
    <description>&lt;P&gt;Ah, thanks but the script name was just a placeholder. It's correct in the actual app, I assume, since it loads the cron value from inputs.conf. I've checked and the script appears as an endpoint within the services list.&lt;/P&gt;

&lt;P&gt;Thanks, though.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2016 13:55:58 GMT</pubDate>
    <dc:creator>Vidd</dc:creator>
    <dc:date>2016-08-16T13:55:58Z</dc:date>
    <item>
      <title>Why am I getting error "Cannot find item for POST arg_name=..." trying to update inputs.conf (scripted inputs) through setup.xml?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-find-item-for-POST-arg-name/m-p/229745#M44720</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I'm trying to update update a stanza within inputs.conf so I can change the cron schedule on a scripted input.&lt;/P&gt;

&lt;P&gt;On the setup screen, it displays the value as expected. However, when submitting the page, I get the following error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Encountered the following error while trying to update: In handler 'localapps': Cannot find item for POST arg_name="/data/inputs/script/%24SPLUNK_HOME%252Fetc%252Fapps%252F&amp;lt;my_app_name&amp;gt;%252Fbin%252F&amp;lt;script&amp;gt;.py/interval"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Looking at the splunkd.log, I found the following error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;08-16-2016 03:33:59.059 -0700 WARN  SetupAdminHandler - could not find matching input for POST arg_name=/data/inputs/script/%24SPLUNK_HOME%252Fetc%252Fapps%252F&amp;lt;my_app_name&amp;gt;%252Fbin%252F&amp;lt;script&amp;gt;.py/interval
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For reference, here are excerpts from inputs.conf and setup.xml:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://$SPLUNK_HOME/etc/apps/&amp;lt;my_app_name&amp;gt;/bin/&amp;lt;script&amp;gt;.py]
passAuth = splunk-system-user
disabled = false
interval = 0 3 * * * 

&amp;lt;block title="Add-on settings"
     endpoint="data/inputs/script"
     entity="%24SPLUNK_HOME%252Fetc%252Fapps%252F&amp;lt;my_app_name&amp;gt;%252Fbin%252F&amp;lt;script&amp;gt;.py"&amp;gt;
&amp;lt;input field="interval"&amp;gt;
  &amp;lt;type&amp;gt;text&amp;lt;/type&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;/block&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This seems to match the example in documentation, so I'm not sure what to try. Any tips for debugging this?&lt;BR /&gt;
I tried defining a custom endpoint, and while it could read the value, it couldn't update it.&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.2/AdvancedDev/SetupExample1"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.2/AdvancedDev/SetupExample1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 11:29:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-find-item-for-POST-arg-name/m-p/229745#M44720</guid>
      <dc:creator>Vidd</dc:creator>
      <dc:date>2016-08-16T11:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Cannot find item for POST arg_name=..." trying to update inputs.conf (scripted inputs) through setup.xml?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-find-item-for-POST-arg-name/m-p/229746#M44721</link>
      <description>&lt;P&gt;You need to update the entity as follows as per stanza in your inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;%24SPLUNK_HOME%252Fetc%252Fapps%252F&amp;lt;my_app_name&amp;gt;%252Fbin%252F%3Cscript%3E.py
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also verify that this REST endpoint is available  under &lt;A href="https://ip:managementport/servicesNS/nobody/"&gt;https://ip:managementport/servicesNS/nobody/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 13:09:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-find-item-for-POST-arg-name/m-p/229746#M44721</guid>
      <dc:creator>hardikJsheth</dc:creator>
      <dc:date>2016-08-16T13:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Cannot find item for POST arg_name=..." trying to update inputs.conf (scripted inputs) through setup.xml?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-find-item-for-POST-arg-name/m-p/229747#M44722</link>
      <description>&lt;P&gt;Ah, thanks but the script name was just a placeholder. It's correct in the actual app, I assume, since it loads the cron value from inputs.conf. I've checked and the script appears as an endpoint within the services list.&lt;/P&gt;

&lt;P&gt;Thanks, though.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 13:55:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-find-item-for-POST-arg-name/m-p/229747#M44722</guid>
      <dc:creator>Vidd</dc:creator>
      <dc:date>2016-08-16T13:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Cannot find item for POST arg_name=..." trying to update inputs.conf (scripted inputs) through setup.xml?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-find-item-for-POST-arg-name/m-p/229748#M44723</link>
      <description>&lt;P&gt;I am facing same issue, did you find any solution&lt;BR /&gt;
Its working fine at linux machine but getting this error on windows&lt;/P&gt;

&lt;P&gt;Encountered the following error while trying to update: In handler 'localapps': Cannot find item for POST arg_name="/admin/script/%24SPLUNK_HOME%5Cetc%5Capps%5Cmy_app%5Cbin%5Cmy_script.py%2015/enabled"&lt;/P&gt;

&lt;P&gt;inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [script://$SPLUNK_HOME\etc\apps\my_app\bin\my_script.py 15]
 disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;setup.xml:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;block title="my script setting"
             endpoint="admin/script"
             entity="%24SPLUNK_HOME%5Cetc%5Capps%5CiSIGHTPartners_ThreatScape_App%5Cbin%5Cfetch_indicators.py%2015"&amp;gt;
     &amp;lt;input field="enabled"&amp;gt;
         &amp;lt;label&amp;gt;Enable&amp;lt;/label&amp;gt;
         &amp;lt;type&amp;gt;bool&amp;lt;/type&amp;gt;
     &amp;lt;/input&amp;gt;
 &amp;lt;/block&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:06:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Cannot-find-item-for-POST-arg-name/m-p/229748#M44723</guid>
      <dc:creator>splunk_mkhan</dc:creator>
      <dc:date>2020-09-29T13:06:47Z</dc:date>
    </item>
  </channel>
</rss>

