Getting Data In

When running a curl command, why I am getting that "401 unauthorized" error despite of having all the REST API capabilities?

kteng2024
Path Finder

Hi there,

I am trying the run curl -k -u james:james@123 https://localhost:8089/services/search/jobs -d search="search *" on the search head but i am getting the error 401 Unauthorized. But the user has "rest_properties_set, rest_properties_get","rest_apps_view". Can i please know why i am still getting that 401 unauthorized error despite of having all the REST API capabilities ?

0 Karma

rodrigorsilva
Communicator

Hi,

Could you try the command with double quotes:

$curl -k -u "user:password" https://localhost:8089/services/search/jobs -d search="search "

What version of curl you use?

Rodrigo Ribeiro

0 Karma

cgaete
Explorer

Can I use CURL to retrieve saved search?

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...