Security

How can we set the owner of a saved search from admin to another user?

ddrillic
Ultra Champion

In the following page, we are unable to change the ownership of a saved search -

Where can we do it?

alt text

Tags (3)
0 Karma
1 Solution

elliotproebstel
Champion

If you have filesystem access to the search head, you can change it in $SPLUNK_HOME/etc/apps/yourapp/metadata/local.meta.

Look for the stanza starting with [savedsearches/45%20Day%20AuthFailures] and replace owner = admin with the value of the username you would like to have own the search.

Note: After doing this, you will probably need to visit https://your.search.head/en-US/debug/refresh to make Splunk pick up the change in the config file.

View solution in original post

somesoni2
SplunkTrust
SplunkTrust

Also look at the REST API method of doing the same (requirement: the current owner should be a valid user). This is helpful for SHC as well as avoids file changes and refresh/restart of Splunk.

https://answers.splunk.com/answers/295303/how-do-i-change-the-owner-of-a-saved-search-or-vie.html

ddrillic
Ultra Champion

Gorgeous @somesoni2.

0 Karma

elliotproebstel
Champion

If you have filesystem access to the search head, you can change it in $SPLUNK_HOME/etc/apps/yourapp/metadata/local.meta.

Look for the stanza starting with [savedsearches/45%20Day%20AuthFailures] and replace owner = admin with the value of the username you would like to have own the search.

Note: After doing this, you will probably need to visit https://your.search.head/en-US/debug/refresh to make Splunk pick up the change in the config file.

ddrillic
Ultra Champion

Perfect @elliotproebstel. I see it!!!

[savedsearches/<name>]
export = none
owner = admin
version = 6.5.2
modtime = 1509563343.905030000
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...