Deployment Architecture

REST API for local user not working through SHC load balancer URL

att35
Builder

Hi all,

I am trying to authenticate a user against REST API but when testing via CURL, it is failing when using LB URL(F5). User has replicated across all SHC members and can login via UI.

# curl -k https://Splunk-LB-URL:8089/services/auth/login -d username=user -d password='password'
<?xml version="1.0" encoding="UTF-8"?>
<response>
  <messages>
    <msg type="WARN" code="incorrect_username_or_password">Login failed</msg>
  </messages>
</response>

 

But when I try this same against the SH member directly, it works.

# curl -k https://Splunk-SearchHead:8089/services/auth/login -d username=user -d password='password'
 <response>
<sessionKey>gULiq_E7abGyEchXyw7rxzwi83Fhdh8gIGjPGBouFUd37GuXF</sessionKey>
  <messages>
    <msg code=""></msg>
  </messages>
</response>

 

Initially I thought it could be something on the LB side but then for "admin" user, LB URL works just fine. 

# curl -k https://Splunk-LB-URL:8089/services/auth/login -d username=admin -d password='password'
 <response>
<sessionKey>gULiq_E7abGyEchXyw7rxzwi83Fhdh8gIGjPGBouFUd37GuXF</sessionKey>
  <messages>
    <msg code=""></msg>
  </messages>
</response>

 

Has anyone come across issue like this? Why would admin work fine on LB but a new local user works only against direct SH and not via load balancer? 

Labels (2)
Tags (1)
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...

Index This | How many sevens are there between 1 and 100?

August 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...