Splunk Enterprise

Why am I Unable to change owner via RestAPI on Saved Orphan search?

SuhDudes
Observer

Hello guys,

 

We have some orphaned saves searches in our splunk cloud instance that are viewable via the following Rest search:
| rest splunk_server=local /servicesNS/-/-/saved/searches add_orphan_field=yes count=0

However when looking at the searches pulled in searches > Reports and Alerting they do not show up.

There are also zero saved searches viewable under Settings > All Configurations > Reassign Knowledge Objects > Orphaned (with all filters on all)

Screenshot 2023-09-11 at 5.20.23 PM.png

 

We are trying to reassign these searches via Rest with the following example syntax:

curl -sk -H 'Authorization: Bearer <token>' -d 'owner=<name of valid owner>'   https://<splunk cloud.com>:8089/servicesNS/nobody/search/saved/searches/%28%20Customers-LoyaltyEnrollment_1.0%20%29

But are receiving  the following error

MicrosoftTeams-image (155).png

This is not an issue with the id as the following is able to pull saved search info.

curl -sk -H 'Authorization: Bearer <token>'  https://<splunk cloud.com>:8089/servicesNS/nobody/search/saved/searches/%28%20Customers-LoyaltyEnrollment_1.0%20%29

 

Does anyone have a better syntax to use to post this owner change to the saved searches?

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!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...