All Apps and Add-ons

Error 401 with Webtools v3.1.2 and username/password

splunkreal
Motivator

Hello @jkat54 noticed in splunkbase release notes "-Removed ability to specify user and pass with the command, use splunkpasswdname & splunkpasswdcontext OR token=<token> OR splunkauth=true instead."

You should update the curl commands on Details tab of splunkbase app as this is misleading.

For the moment using v3.1.2 could only make work using token not username/password. Getting error 401 when it works correctly with CLI curl command. I'm using "REST storage/passwords Manager for Splunk"

 

syntax: | curl method=get uri="https://xxx/internalqueries?queryguid={3A798982-3D8F-465C-BB01-9E90CE4D3B4D}&filterguid={73B09AC4-6C...}" splunkpasswdname="api.xxx" splunkauth=f

 

I could make it work using v3.1.0 so maybe there is a bug with latest version?

 

Thanks for your help and thank you for this app!

* If this helps, please upvote or accept solution if it solved *
Labels (2)
0 Karma
1 Solution

jkat54
SplunkTrust
SplunkTrust

I think I'll update to "token or splunkauth" only.  

that app we used previously for storing passwords isn't cloud compatible and hasn't been updated since 3/2024 so I guess we ditched it in the latest cloud version.

Thanks for the feedback, you can always use the working version as needed.  

The newer versions may have more functionality but the primary reason we continue to update is to keep in line with cloud  compatibility policies. 

Cheers!

 

View solution in original post

jkat54
SplunkTrust
SplunkTrust

I think I'll update to "token or splunkauth" only.  

that app we used previously for storing passwords isn't cloud compatible and hasn't been updated since 3/2024 so I guess we ditched it in the latest cloud version.

Thanks for the feedback, you can always use the working version as needed.  

The newer versions may have more functionality but the primary reason we continue to update is to keep in line with cloud  compatibility policies. 

Cheers!

 

livehybrid
SplunkTrust
SplunkTrust

Hi @splunkreal 

You are probably better off speaking directly with @jkat54 rather than tagging in a post as they might not check these boards regularly.

You might find it better to DM on Splunk Community Slack (https://community.splunk.com/t5/Join-Slack/ct-p/join-slack)

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...