Splunk Search

Splunk Web UI - Getting "Cannot get username when all users are selected" along with some web elements not loading

vtalanki
Path Finder

Hi,

We have setup our Splunk cluster, version 7.3.3 in AWS and seeing that on logging into splunk UI, some of the web elements are not loading - like User id, 'Search and Reporting' App(sometimes) etc.

Screen Shot 2020-06-11 at 10.10.49 PM.png

Also when we are performing any search we see that it displays "Cannot get username when all users are selected"

Screen Shot 2020-06-11 at 11.03.12 PM.png

Our search heads are behind AWS NLB. Our policies do not support ALB and hence we have to settle with NLB, which at this time do not support Sticky sessions or persistence.

I have gone thru some of the Splunk Answers on this similar issue and came to know that this is probably because of missing sticky sessions. 

Is this really a missing sticky session issue? If yes, Is there any alternate way to resolve this apart from moving from NLB to ALB?

0 Karma
1 Solution

vtalanki
Path Finder

Thanks for responding @livehybrid . Unfortunately we cannot go ahead with another lb than what AWS provides. 

AWS documentation says you can enable sticky sessions for NLB with type='source_ip' and when I enable stickiness in target group section for NLB in AWS Console, I'm not seeing this issue anymore. 

Do you think this might be the solution then?

View solution in original post

0 Karma

livehybrid
SplunkTrust
SplunkTrust

Unfortunately this will indeed be as a result of using an NLB which doesnt support the sticky sessions you need (https://docs.splunk.com/Documentation/Splunk/8.0.4/DistSearch/UseSHCwithloadbalancers)

Other options you could look at might be using DNS to use a primary SH and using a health-check to create a failover configuration, although this will only give you High-availability rather than spreading of load through the UI.

Could you front it with something like HAProxy which could then apply the session persistence?

Tags (3)
0 Karma

vtalanki
Path Finder

Thanks for responding @livehybrid . Unfortunately we cannot go ahead with another lb than what AWS provides. 

AWS documentation says you can enable sticky sessions for NLB with type='source_ip' and when I enable stickiness in target group section for NLB in AWS Console, I'm not seeing this issue anymore. 

Do you think this might be the solution then?

0 Karma

livehybrid
SplunkTrust
SplunkTrust

Ah fantastic. That will work as long as everybody using your instance isnt coming from the same source IP/Proxy/NAT gateway out of your company, otherwise you will all end up hitting the same SH!

0 Karma

vtalanki
Path Finder

Yup. Thats right. Agree

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...