<?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 Why I am getting error &amp;quot;Encountered the following error while trying to update: In handler 'localapps': Cannot find item for POST arg_name=&amp;quot;/admin/script/%24SPLUNK_HOME%5Cetc%5Capps%5C%5Cbin%5C%2015/enabled&amp;quot; at windows in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-I-am-getting-error-quot-Encountered-the-following-error/m-p/336966#M62220</link>
    <description>&lt;P&gt;I am trying to update input.conf stanza at windows, it is working fine in linux but giving following error in windows 7.&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;For reference, here are excerpts from inputs.conf and setup.xml:&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;

&lt;P&gt;Any help will be appreciated.&lt;BR /&gt;
thanks, &lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:06:42 GMT</pubDate>
    <dc:creator>splunk_mkhan</dc:creator>
    <dc:date>2020-09-29T13:06:42Z</dc:date>
    <item>
      <title>Why I am getting error "Encountered the following error while trying to update: In handler 'localapps': Cannot find item for POST arg_name="/admin/script/%24SPLUNK_HOME%5Cetc%5Capps%5C%5Cbin%5C%2015/enabled" at windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-I-am-getting-error-quot-Encountered-the-following-error/m-p/336966#M62220</link>
      <description>&lt;P&gt;I am trying to update input.conf stanza at windows, it is working fine in linux but giving following error in windows 7.&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;For reference, here are excerpts from inputs.conf and setup.xml:&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;

&lt;P&gt;Any help will be appreciated.&lt;BR /&gt;
thanks, &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:06:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-I-am-getting-error-quot-Encountered-the-following-error/m-p/336966#M62220</guid>
      <dc:creator>splunk_mkhan</dc:creator>
      <dc:date>2020-09-29T13:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why I am getting error "Encountered the following error while trying to update: In handler 'localapps': Cannot find item for POST arg_name="/admin/script/%24SPLUNK_HOME%5Cetc%5Capps%5C%5Cbin%5C%2015/enabled" at windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-I-am-getting-error-quot-Encountered-the-following-error/m-p/336967#M62221</link>
      <description>&lt;P&gt;Hi splunk_mkhan,&lt;/P&gt;

&lt;P&gt;just some silly question:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;did you tested your Python script on Windows?&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;have you tried to modify your script using the full address?[script://c:\Programs\splunk\etc\apps\my_app\bin\my_script.py 15]&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;What is 15 at the end of your command?&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:06:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-I-am-getting-error-quot-Encountered-the-following-error/m-p/336967#M62221</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-29T13:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why I am getting error "Encountered the following error while trying to update: In handler 'localapps': Cannot find item for POST arg_name="/admin/script/%24SPLUNK_HOME%5Cetc%5Capps%5C%5Cbin%5C%2015/enabled" at windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-I-am-getting-error-quot-Encountered-the-following-error/m-p/336968#M62222</link>
      <description>&lt;P&gt;Thanks cusello for your response,&lt;BR /&gt;
. Python script running successfully in app at windows successfully.&lt;BR /&gt;
. I have tried script using full address ?[script://c:\Programs\splunk\etc\apps\my_app\bin\my_script.py 15]&lt;BR /&gt;
. 15 at the end of command is argument provided for script interval which is working fine in linux as well as windows.&lt;/P&gt;

&lt;P&gt;Actually I am not getting any issue with inputs.conf&lt;BR /&gt;
my app script is running fine after providing below script path in inputs.conf&lt;BR /&gt;
    path[script://$SPLUNK_HOME\etc\apps\my_app\bin\my_script.py 15]&lt;BR /&gt;
          disabled = 0&lt;/P&gt;

&lt;P&gt;I am getting only issue to enable/disable this script from setup page of this app&lt;BR /&gt;
issue is in below setup.xml block&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;

&lt;P&gt;problem is in provided entity field&lt;BR /&gt;
    entity="%24SPLUNK_HOME%5Cetc%5Capps%5CiSIGHTPartners_ThreatScape_App%5Cbin%5Cfetch_indicators.py%2015 "&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:08:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-I-am-getting-error-quot-Encountered-the-following-error/m-p/336968#M62222</guid>
      <dc:creator>mkhan_splunk</dc:creator>
      <dc:date>2020-09-29T13:08:31Z</dc:date>
    </item>
  </channel>
</rss>

