<?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: For Splunk API requests are authentication tokens needed in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/For-Splunk-API-requests-are-authentication-tokens-needed/m-p/647759#M110146</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;1st request can use any user which have access for REST queries.&lt;/P&gt;&lt;P&gt;One note: when you are writing "-u &amp;lt;user:pass&amp;gt;" on command line anyone on that node can see it on process list and from your history if they have enough power for that! For that reason it's better to put those to variable and then use it on cmd. You can do it like this on *nix command line.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;read VarUserPass
admin:changeme
^D
curl -k -u $VarUserPass https://localhost:8089/servicesNS/admin/-/alerts/alert_actions&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd one can use any users (including admins) which have valid authentication token assigned to them.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2023 11:05:20 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2023-06-21T11:05:20Z</dc:date>
    <item>
      <title>For Splunk API requests,  are authentication tokens needed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/For-Splunk-API-requests-are-authentication-tokens-needed/m-p/647736#M110143</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I was reading about making requests to the Splunk API. When I was reading this link below and when making a request the username (admin) and password (pass) need to be included in the request which is seen below:&lt;/P&gt;
&lt;PRE&gt;curl -k -u admin:pass https://localhost:8089/servicesNS/admin/-/alerts/alert_actions&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/9.0.2303/RESTREF/RESTsearch#search.2Fjobs" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/SplunkCloud/9.0.2303/RESTREF/RESTsearch#search.2Fjobs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;However there was another link mentioning that authentication tokens are needed to make API requests.&lt;/P&gt;
&lt;PRE&gt;curl -H "Authorization: &amp;lt;type&amp;gt; &amp;lt;token&amp;gt;" -X &amp;lt;method&amp;gt; https://&amp;lt;instance host name or IP address&amp;gt;:&amp;lt;management port&amp;gt;/&amp;lt;REST endpoint&amp;gt; -d &amp;lt;data...&amp;gt; [-d &amp;lt;data...&amp;gt;...]&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/9.0.2209/Security/UseAuthTokens" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/SplunkCloud/9.0.2209/Security/UseAuthTokens&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Is the first API request can only be used by admins and is the second request only given to users granted access by admins where they are given authentication tokens?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 17:28:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/For-Splunk-API-requests-are-authentication-tokens-needed/m-p/647736#M110143</guid>
      <dc:creator>asmyth1995</dc:creator>
      <dc:date>2023-06-22T17:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: For Splunk API requests are authentication tokens needed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/For-Splunk-API-requests-are-authentication-tokens-needed/m-p/647759#M110146</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;1st request can use any user which have access for REST queries.&lt;/P&gt;&lt;P&gt;One note: when you are writing "-u &amp;lt;user:pass&amp;gt;" on command line anyone on that node can see it on process list and from your history if they have enough power for that! For that reason it's better to put those to variable and then use it on cmd. You can do it like this on *nix command line.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;read VarUserPass
admin:changeme
^D
curl -k -u $VarUserPass https://localhost:8089/servicesNS/admin/-/alerts/alert_actions&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd one can use any users (including admins) which have valid authentication token assigned to them.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 11:05:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/For-Splunk-API-requests-are-authentication-tokens-needed/m-p/647759#M110146</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-06-21T11:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: For Splunk API requests are authentication tokens needed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/For-Splunk-API-requests-are-authentication-tokens-needed/m-p/647764#M110147</link>
      <description>&lt;P&gt;Thank you very much for answering that. I was also checking the status codes for the REST API and it doesn't include a 429 status code. Does the GET requests to the saved/search query have any rate limits or is there a max number of API calls that you can do in a day?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 11:17:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/For-Splunk-API-requests-are-authentication-tokens-needed/m-p/647764#M110147</guid>
      <dc:creator>asmyth1995</dc:creator>
      <dc:date>2023-06-21T11:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: For Splunk API requests are authentication tokens needed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/For-Splunk-API-requests-are-authentication-tokens-needed/m-p/647770#M110148</link>
      <description>&lt;P&gt;Unfortunately I don't know those limits and in personally haven't even gotten those.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/106850"&gt;@gjanders&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/193014"&gt;@Brett&lt;/a&gt;&amp;nbsp;have you any experiences about rate limit for REST calls?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 11:58:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/For-Splunk-API-requests-are-authentication-tokens-needed/m-p/647770#M110148</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-06-21T11:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: For Splunk API requests are authentication tokens needed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/For-Splunk-API-requests-are-authentication-tokens-needed/m-p/647894#M110167</link>
      <description>&lt;P&gt;I'm unaware of any limits here...I haven't seen a documented limit for Splunk cloud instances for REST APi calls. There may be an AWS system that is helping to prevent a flood of traffic...(I'm not familiar with the actual Splunk cloud build)&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 10:42:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/For-Splunk-API-requests-are-authentication-tokens-needed/m-p/647894#M110167</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2023-06-22T10:42:19Z</dc:date>
    </item>
  </channel>
</rss>

