- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a task to move All users (except admins, nobody) KOs (Knowledge Objects) from search app, to their own apps.
When I try to move the KO, I get below error.
Replication-related issue: Cannot move asset lacking a pre-existing asset ID
Online search shows, work around for this.
We just re-save the splunk KO and them move it (to other app).
But problem is we have thousands of splunk KOs. There is no way we can manually do this.
I tired to automate with python script.
I did not see rest endpoint "/save" or /re-save
Endpoints for Views:
<link href="/servicesNS/admin/search/data/ui/views/my_dashboard" rel="list"/> <link href="/servicesNS/admin/search/data/ui/views/my_dashboard/_reload" rel="_reload"/> <link href="/servicesNS/admin/search/data/ui/views/my_dashboard" rel="edit"/> <link href="/servicesNS/admin/search/data/ui/views/my_dashboard" rel="remove"/> <link href="/servicesNS/admin/search/data/ui/views/my_dashboard/move" rel="move"/>
I see /move but not /save.
Need help, finding rest endpoint, so that I can script (The save, with NO changes and Move), for all Splunk KOs (Savedsearches, Views, Eventtypes, etc...) for users.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This code seems to be working.
Assigning same existing KO's owner and sharing details, in the payload is saving the splunk KO.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content


Try moving one user object from UI and check in below two log files if you see any GET/POST requests:
/opt/splunk/var/log/splunk/splunkd_ui_access.log
/opt/splunk/var/log/splunk/web_access.log
If this helps, give a like below.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This code seems to be working.
Assigning same existing KO's owner and sharing details, in the payload is saving the splunk KO.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content


I believe you can simply move below two directories to user app folder $SPLUNK_HOME/etc/users/users/<username>/search/local/ #place where user KO's are saved if they are private.
$SPLUNK_HOME/etc/users/users/<username>/search/metadata/ #place where permissions are maintained.
If this helps, give a like below.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@thambisetty We have 30 search heads in the backend.
Moving hundreds of users local and meta folders, is giving us pause.
I am still leaning towards doing this through python script.
If we can do it (save Knowledge Object, without making any changes) from UI, then we should be able to do it, through REST endpoint.
Is there a way to see, what underlying endpoints, splunk UI is calling?
May be that will give us some pointers.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I also have been having "issues" , i have created a utility in python to extract all KO's for a list ( lookup table ) of users. It will clone all KO's to a designated target app. It works well for all objects until we decided to add a "disable source" option. This revealed that "global" objects were not truly being cloned but "acting" as if they are....
A part of the process calls the target to see if it already exists... This is always true for a "global" object returning no 404 error but instead a full result but examining past the atom links the ['entry'][0]['links'] all point back to the original app links.... I can even disable the source and enable the target .... a disaster waiting to happen. If I move the target app ( to the cloud for instance ) it has NONE of the relevant attribute to function ... like the base search ...
Is there any FULL documentation to the /move links since adding 'sharing'= app or global does not stop a new private object being created.... (as is suggested in Splunk rest doc's but the examples are VERY simplistic
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Solved- after some trial and error the user was being fed in to the call since it was a required attribute BUT that triggers a user level save (private ) using "nobody" keeps it in the app...
