<?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 Encountered problem during Dev Tutorial - First App - &amp;lt;msg type=&amp;quot;ERROR&amp;quot;&amp;gt;Action forbidden.&amp;lt;/msg&amp;gt; in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Encountered-problem-during-Dev-Tutorial-First-App-lt-msg-type/m-p/601939#M10655</link>
    <description>&lt;P data-unlink="true"&gt;I was going through the tutorial to build "your first app" on the Splunk Development site &lt;A href="https://dev.splunk.com/enterprise/tutorials/module_getstarted/useeventgen" target="_self"&gt;here&lt;/A&gt;, and I could not get the api call to create an index.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running on a windows 10 Development box (trial license).&lt;/P&gt;
&lt;H4&gt;Splunk Enterprise&lt;/H4&gt;
&lt;P&gt;Version:8.2.6&lt;/P&gt;
&lt;P&gt;Build:a6fe1ee8894b&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The command below fails and I am not sure why.&amp;nbsp; I can use one of the other two options (CLI or WebUI) to create the index, but wanted to know why the REST API option failed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;C:\apps\splunk\bin&amp;gt;curl -k -u "user":"password" &lt;A href="https://localhost:8089/servicesNS/admin/search/data/indexes" target="_blank" rel="noopener"&gt;https://localhost:8089/servicesNS/admin/search/data/indexes&lt;/A&gt; -d name="devtutorial"&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;response&amp;gt;&lt;BR /&gt;&amp;lt;messages&amp;gt;&lt;BR /&gt;&amp;lt;msg type="ERROR"&amp;gt;&lt;STRONG&gt;Action forbidden&lt;/STRONG&gt;.&amp;lt;/msg&amp;gt;&lt;BR /&gt;&amp;lt;/messages&amp;gt;&lt;BR /&gt;&amp;lt;/response&amp;gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologies for the formatting, but when I tried to insert it as code, it said it was invalid. I have included an image version below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot_invalid.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/20115i1926C182C717FA4F/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot_invalid.png" alt="screenshot_invalid.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 20:11:11 GMT</pubDate>
    <dc:creator>state_larson_ti</dc:creator>
    <dc:date>2022-06-15T20:11:11Z</dc:date>
    <item>
      <title>Encountered problem during Dev Tutorial - First App - &lt;msg type="ERROR"&gt;Action forbidden.&lt;/msg&gt;</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Encountered-problem-during-Dev-Tutorial-First-App-lt-msg-type/m-p/601939#M10655</link>
      <description>&lt;P data-unlink="true"&gt;I was going through the tutorial to build "your first app" on the Splunk Development site &lt;A href="https://dev.splunk.com/enterprise/tutorials/module_getstarted/useeventgen" target="_self"&gt;here&lt;/A&gt;, and I could not get the api call to create an index.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running on a windows 10 Development box (trial license).&lt;/P&gt;
&lt;H4&gt;Splunk Enterprise&lt;/H4&gt;
&lt;P&gt;Version:8.2.6&lt;/P&gt;
&lt;P&gt;Build:a6fe1ee8894b&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The command below fails and I am not sure why.&amp;nbsp; I can use one of the other two options (CLI or WebUI) to create the index, but wanted to know why the REST API option failed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;C:\apps\splunk\bin&amp;gt;curl -k -u "user":"password" &lt;A href="https://localhost:8089/servicesNS/admin/search/data/indexes" target="_blank" rel="noopener"&gt;https://localhost:8089/servicesNS/admin/search/data/indexes&lt;/A&gt; -d name="devtutorial"&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;response&amp;gt;&lt;BR /&gt;&amp;lt;messages&amp;gt;&lt;BR /&gt;&amp;lt;msg type="ERROR"&amp;gt;&lt;STRONG&gt;Action forbidden&lt;/STRONG&gt;.&amp;lt;/msg&amp;gt;&lt;BR /&gt;&amp;lt;/messages&amp;gt;&lt;BR /&gt;&amp;lt;/response&amp;gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologies for the formatting, but when I tried to insert it as code, it said it was invalid. I have included an image version below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot_invalid.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/20115i1926C182C717FA4F/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot_invalid.png" alt="screenshot_invalid.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 20:11:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Encountered-problem-during-Dev-Tutorial-First-App-lt-msg-type/m-p/601939#M10655</guid>
      <dc:creator>state_larson_ti</dc:creator>
      <dc:date>2022-06-15T20:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dev Tutorial - First App - &lt;msg type="ERROR"&gt;Action forbidden.&lt;/msg&gt;</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Encountered-problem-during-Dev-Tutorial-First-App-lt-msg-type/m-p/601944#M10656</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/211458"&gt;@state_larson_ti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you have to pass the user details which has administrator previlledge without double quote.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -u admin:admin123 https://localhost:8089/servicesNS/admin/search/data/indexes -d name=devtutorial&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 16:20:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Encountered-problem-during-Dev-Tutorial-First-App-lt-msg-type/m-p/601944#M10656</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2022-06-15T16:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dev Tutorial - First App - &lt;msg type="ERROR"&gt;Action forbidden.&lt;/msg&gt;</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Encountered-problem-during-Dev-Tutorial-First-App-lt-msg-type/m-p/601963#M10657</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;.&amp;nbsp; I had actually tried that and it did not work.&amp;nbsp; I have been trying a LOT of things, but I could not reproduce it on LINUX or DOCKER (it works just fine).&amp;nbsp; I also used a linux subsystem to run it against the windows instance of splunk I had locally, and that also failed with the same error.&amp;nbsp; I suspect it has something to do with using the Trial on Windows 10 (all other use cases worked fine).&amp;nbsp; I happen to be at .conf, and took this to the developers in the builder bar, and they agree it is a use case they need to test.&amp;nbsp; The webui and command line work fine using the same credentials.&amp;nbsp; Not solved, but I suspect it may be a bug, and so it has been reported to Splunk developers.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 18:02:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Encountered-problem-during-Dev-Tutorial-First-App-lt-msg-type/m-p/601963#M10657</guid>
      <dc:creator>state_larson_ti</dc:creator>
      <dc:date>2022-06-15T18:02:58Z</dc:date>
    </item>
  </channel>
</rss>

