<?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: How to delete session_key when done in REST API as non-admin user in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-session-key-when-done-in-REST-API-as-non-admin/m-p/71156#M14479</link>
    <description>&lt;P&gt;Thanks!  It's 60 minutes on mine and that matches what I am seeing.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jun 2012 21:18:29 GMT</pubDate>
    <dc:creator>newfdawg</dc:creator>
    <dc:date>2012-06-11T21:18:29Z</dc:date>
    <item>
      <title>How to delete session_key when done in REST API as non-admin user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-session-key-when-done-in-REST-API-as-non-admin/m-p/71152#M14475</link>
      <description>&lt;P&gt;After programatically getting the session_key:&lt;BR /&gt;
curl -k -u admin:pass  &lt;A href="https://localhost:8089/services/auth/login"&gt;https://localhost:8089/services/auth/login&lt;/A&gt; -d username=non-admin-user -d password=pass&lt;BR /&gt;
and then using that for the rest of the tasks via the API.  How do I as this same user (a non-admin user) release or delete the session key?&lt;BR /&gt;
Also - does anyone know the lifetime of the session key?&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Chris&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 08 Jun 2012 20:04:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-session-key-when-done-in-REST-API-as-non-admin/m-p/71152#M14475</guid>
      <dc:creator>newfdawg</dc:creator>
      <dc:date>2012-06-08T20:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete session_key when done in REST API as non-admin user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-session-key-when-done-in-REST-API-as-non-admin/m-p/71153#M14476</link>
      <description>&lt;P&gt;I suspect it's the same session length as for web GUI logins (Manager -&amp;gt; System Settings -&amp;gt; General Settings)&lt;BR /&gt;
The actual setting is in server.conf.&lt;/P&gt;

&lt;P&gt;As for deleting the session key, well, that's beyond me.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2012 20:22:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-session-key-when-done-in-REST-API-as-non-admin/m-p/71153#M14476</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-06-08T20:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete session_key when done in REST API as non-admin user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-session-key-when-done-in-REST-API-as-non-admin/m-p/71154#M14477</link>
      <description>&lt;P&gt;You can delete it with a &lt;CODE&gt;DELETE&lt;/CODE&gt; http method call to the rest endpoint &lt;A href="https://localhost:8089/services/authentication/httpauth-tokens/_authtokenname_"&gt;https://localhost:8089/services/authentication/httpauth-tokens/_authtokenname_&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The duration of a session is set in server.conf [general] sessionTimeout.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;update: &lt;/P&gt;

&lt;P&gt;appears you could use curl:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -X DELETE -H "Authorization: Splunk 1a2b3c4d5e6f7g8h90" &lt;A href="https://localhost:8089/services/authentication/httpauth-tokens/1a2b3c4d5e6f7g8h90" target="test_blank"&gt;https://localhost:8089/services/authentication/httpauth-tokens/1a2b3c4d5e6f7g8h90&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Jun 2012 22:31:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-session-key-when-done-in-REST-API-as-non-admin/m-p/71154#M14477</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-06-08T22:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete session_key when done in REST API as non-admin user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-session-key-when-done-in-REST-API-as-non-admin/m-p/71155#M14478</link>
      <description>&lt;P&gt;Thank you - that did it!  (After I added the edit_httpauths capability to the user's role).&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2012 21:15:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-session-key-when-done-in-REST-API-as-non-admin/m-p/71155#M14478</guid>
      <dc:creator>newfdawg</dc:creator>
      <dc:date>2012-06-11T21:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete session_key when done in REST API as non-admin user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-session-key-when-done-in-REST-API-as-non-admin/m-p/71156#M14479</link>
      <description>&lt;P&gt;Thanks!  It's 60 minutes on mine and that matches what I am seeing.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2012 21:18:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-session-key-when-done-in-REST-API-as-non-admin/m-p/71156#M14479</guid>
      <dc:creator>newfdawg</dc:creator>
      <dc:date>2012-06-11T21:18:29Z</dc:date>
    </item>
  </channel>
</rss>

