<?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: Can't add data to Splunk Cloud via REST API (requires capability: edit_monitor) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-data-to-Splunk-Cloud-via-REST-API-requires-capability/m-p/452581#M78415</link>
    <description>&lt;P&gt;OK - Sorry I am not sure how to get that specific role added.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Feb 2019 23:57:47 GMT</pubDate>
    <dc:creator>chrisyounger</dc:creator>
    <dc:date>2019-02-04T23:57:47Z</dc:date>
    <item>
      <title>Can't add data to Splunk Cloud via REST API (requires capability: edit_monitor)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-data-to-Splunk-Cloud-via-REST-API-requires-capability/m-p/452578#M78412</link>
      <description>&lt;P&gt;When I try to add data to the main index via the REST API utilizing the upload.py python script in the splunk-sdk git I get the following error&lt;/P&gt;

&lt;P&gt;do not have permission to perform this operation (requires capability: edit_monitor).&lt;/P&gt;

&lt;P&gt;even though I am using the API as an administrator (sc_admin) user role.&lt;/P&gt;

&lt;P&gt;Following this I inspected the capabilities under sc_admin and sure enough edit_monitor is not a capability that the sc_admin has.&lt;/P&gt;

&lt;P&gt;So I said OK let me add the capability.  Unfortunately, the capability can not be added to the user role.  What am I missing here?&lt;/P&gt;

&lt;P&gt;I know a suggested work around is to use the forwarder to upload the data but is this an admission that one can not add data to the index via the REST api?&lt;/P&gt;

&lt;P&gt;The exact same python script works like a charm with the Enterprise Splunk instance.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:09:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-data-to-Splunk-Cloud-via-REST-API-requires-capability/m-p/452578#M78412</guid>
      <dc:creator>czervos</dc:creator>
      <dc:date>2020-09-29T23:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add data to Splunk Cloud via REST API (requires capability: edit_monitor)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-data-to-Splunk-Cloud-via-REST-API-requires-capability/m-p/452579#M78413</link>
      <description>&lt;P&gt;You need to get support to open access to the API&lt;/P&gt;

&lt;P&gt;More info here: &lt;A href="https://answers.splunk.com/answers/432240/i-am-a-splunk-cloud-customer-i-would-like-access-t.html"&gt;https://answers.splunk.com/answers/432240/i-am-a-splunk-cloud-customer-i-would-like-access-t.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 20:03:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-data-to-Splunk-Cloud-via-REST-API-requires-capability/m-p/452579#M78413</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-02-04T20:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add data to Splunk Cloud via REST API (requires capability: edit_monitor)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-data-to-Splunk-Cloud-via-REST-API-requires-capability/m-p/452580#M78414</link>
      <description>&lt;P&gt;Chrisyoungerjds, access to the API is open.  When I curl to &lt;/P&gt;

&lt;P&gt;curl -k -u username:password &lt;A href="https://.splunkcloud.com:8089/servicesNS/nobody/search/properties/props/websphere_core" target="test_blank"&gt;https://.splunkcloud.com:8089/servicesNS/nobody/search/properties/props/websphere_core&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;gives a response just fine.&lt;/P&gt;

&lt;P&gt;It is when I try to upload a log file via the REST API that I get the error below.&lt;/P&gt;

&lt;P&gt;File "/usr/local/lib/python2.7/site-packages/splunklib/binding.py", line 1244, in request&lt;BR /&gt;
    raise HTTPError(response)&lt;BR /&gt;
splunklib.binding.HTTPError: HTTP 403 Forbidden -- You (user=username) do not have permission to perform this operation (requires capability: edit_monitor).&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 23:49:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-data-to-Splunk-Cloud-via-REST-API-requires-capability/m-p/452580#M78414</guid>
      <dc:creator>czervos</dc:creator>
      <dc:date>2019-02-04T23:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add data to Splunk Cloud via REST API (requires capability: edit_monitor)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-data-to-Splunk-Cloud-via-REST-API-requires-capability/m-p/452581#M78415</link>
      <description>&lt;P&gt;OK - Sorry I am not sure how to get that specific role added.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 23:57:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-add-data-to-Splunk-Cloud-via-REST-API-requires-capability/m-p/452581#M78415</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-02-04T23:57:47Z</dc:date>
    </item>
  </channel>
</rss>

