Security

Current logged in user in 6.3

grossb
Explorer

Hello,
The current recommendations to use "| rest /services/authentication/current-context" to find the current logged in user do not work in 6.3.1. What is the alternative?

Thanks,
Brett

0 Karma
1 Solution

javiergn
SplunkTrust
SplunkTrust

Try specifying the local server:

| rest /services/authentication/current-contex splunk_server=local

View solution in original post

javiergn
SplunkTrust
SplunkTrust

Try specifying the local server:

| rest /services/authentication/current-contex splunk_server=local

grossb
Explorer

This worked for me after fixing the typo. Thank you very much!

"| rest /services/authentication/current-context splunk_server=local"

0 Karma

dcarmack_splunk
Splunk Employee
Splunk Employee

Hi Brett

What specifically isn't working for you? The command works as expected for me.

0 Karma

grossb
Explorer

I kept getting "Splunk-System-User" as the username when using the command above. Adding "splunk_server=local" as noted in the answer brought the correct current logged in user.

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...