<?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 Using Splunk rest api, I get 401 clustered in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Using-Splunk-rest-api-I-get-401-clustered/m-p/652019#M11134</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Hi, I have created a cluster of 3 nodes, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;and I use Splunk rest api to perform a login, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I regularly get a sessionkey after the login, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;but&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; if in the next call I call a node other than the one that logged me in,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicrosoftTeams-image (4).png" style="width: 594px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26459i17B45FC676381504/image-size/large?v=v2&amp;amp;px=999" role="button" title="MicrosoftTeams-image (4).png" alt="MicrosoftTeams-image (4).png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I get a 401 even if I pass the sessionkey in the call,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicrosoftTeams-image (5).png" style="width: 640px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26457i48B5AF81ADEC960A/image-size/large?v=v2&amp;amp;px=999" role="button" title="MicrosoftTeams-image (5).png" alt="MicrosoftTeams-image (5).png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;How can I share login information between nodes?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I am unable to run a sticky session between nodes&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 26 Jul 2023 08:36:02 GMT</pubDate>
    <dc:creator>mariocioffi</dc:creator>
    <dc:date>2023-07-26T08:36:02Z</dc:date>
    <item>
      <title>Using Splunk rest api, I get 401 clustered</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Using-Splunk-rest-api-I-get-401-clustered/m-p/652019#M11134</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Hi, I have created a cluster of 3 nodes, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;and I use Splunk rest api to perform a login, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I regularly get a sessionkey after the login, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;but&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; if in the next call I call a node other than the one that logged me in,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicrosoftTeams-image (4).png" style="width: 594px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26459i17B45FC676381504/image-size/large?v=v2&amp;amp;px=999" role="button" title="MicrosoftTeams-image (4).png" alt="MicrosoftTeams-image (4).png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I get a 401 even if I pass the sessionkey in the call,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicrosoftTeams-image (5).png" style="width: 640px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26457i48B5AF81ADEC960A/image-size/large?v=v2&amp;amp;px=999" role="button" title="MicrosoftTeams-image (5).png" alt="MicrosoftTeams-image (5).png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;How can I share login information between nodes?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I am unable to run a sticky session between nodes&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Jul 2023 08:36:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Using-Splunk-rest-api-I-get-401-clustered/m-p/652019#M11134</guid>
      <dc:creator>mariocioffi</dc:creator>
      <dc:date>2023-07-26T08:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using Splunk rest api, I get 401 clustered</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Using-Splunk-rest-api-I-get-401-clustered/m-p/652020#M11135</link>
      <description>&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I add that for the login I'm using admin credentials&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Jul 2023 08:37:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Using-Splunk-rest-api-I-get-401-clustered/m-p/652020#M11135</guid>
      <dc:creator>mariocioffi</dc:creator>
      <dc:date>2023-07-26T08:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using Splunk rest api, I get 401 clustered</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Using-Splunk-rest-api-I-get-401-clustered/m-p/652039#M11136</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;your said that this is cluster. Do you mean SHC with deployer?&lt;/P&gt;&lt;P&gt;If so, you must have LB before it and use sticky session for normal web traffic and also for REST API traffic. How this will done, is depending on your LB.&amp;nbsp;&lt;BR /&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 10:46:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Using-Splunk-rest-api-I-get-401-clustered/m-p/652039#M11136</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-07-26T10:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using Splunk rest api, I get 401 clustered</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Using-Splunk-rest-api-I-get-401-clustered/m-p/652047#M11137</link>
      <description>&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A class="" href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410" target="_self"&gt;&lt;SPAN class=""&gt;isoutamo&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;thank you for response, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;the elb over cluster have &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;already has the sticky session active, unfortunately it is invoked by a container system that does not accept the session cookie, so is there a way to share the sessionkey between the cluster nodes?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 12:00:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Using-Splunk-rest-api-I-get-401-clustered/m-p/652047#M11137</guid>
      <dc:creator>mariocioffi</dc:creator>
      <dc:date>2023-07-26T12:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using Splunk rest api, I get 401 clustered</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Using-Splunk-rest-api-I-get-401-clustered/m-p/652053#M11138</link>
      <description>&lt;P&gt;Could you tell more about your architecture? How it has done and which component you have inside EKS or what is your container system? How you are defined access between EKS&amp;nbsp;and &amp;nbsp;other components?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 12:59:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Using-Splunk-rest-api-I-get-401-clustered/m-p/652053#M11138</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-07-26T12:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using Splunk rest api, I get 401 clustered</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Using-Splunk-rest-api-I-get-401-clustered/m-p/652060#M11139</link>
      <description>&lt;P&gt;ok , the architecture&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ELB&lt;/P&gt;&lt;P&gt;|&lt;/P&gt;&lt;P&gt;Apache as a service in Container EKS, with php page that call Backend ELB&lt;/P&gt;&lt;P&gt;|&lt;/P&gt;&lt;P&gt;Bachend ELB&lt;/P&gt;&lt;P&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;/P&gt;&lt;P&gt;node1 node2 node3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;the problem is that stickiness is not maintained when switching from the container, and a different splunk node is called each time, even if the backend elb implements the session cookie&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;i hope everything is clear, so i would need to share login sessions between nodes no matter which server is called&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 13:47:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Using-Splunk-rest-api-I-get-401-clustered/m-p/652060#M11139</guid>
      <dc:creator>mariocioffi</dc:creator>
      <dc:date>2023-07-26T13:47:04Z</dc:date>
    </item>
  </channel>
</rss>

