All Apps and Add-ons

User is gone - how to remove their reports and queries?

lvirden
Explorer

So in the case that someone has left the company - or even if they are here but changed their name - how do we track down all the reports, saved queries, etc. and either remove them or change them to the new name?

0 Karma

jensonthottian
Contributor

for saved searches you can either delete them from savedsearches.conf or change owner, You can update the metadata in the location where the savedsearches.conf file exists. For instance, I've got a saved search in $SPLUNK_HOME/etc/apps/search/local, I can change the owner in $SPLUNK_HOME/etc/apps/search/metadata/local.meta. Determine the app that the savedsearch (or tag or eventtype etc) belongs to. Edit the file
$SPLUNK_HOME/etc/apps/[appname]/metadata/local.meta
Find the item(s) that need to be changed, and update the owner field.

[savedsearches/mysearch]
export = none
owner = admin
version = 6.2.3
modtime = 1394164870.793299000

or you want it to be done using CLI -
https://answers.splunk.com/answers/295303/how-do-i-change-the-owner-of-a-saved-search-or-vie.html

0 Karma

lvirden
Explorer

So, if I don't know where all the user is located - or I want to perform an audit, validating all the users of all the searches, etc. - is there some method of dealing with that? I'm new to splunk and I don't know where User xyz's things are. I do know that some actions in splunk generate quite a long list of "invalid key in stanza" type messages

0 Karma

kmattern
Builder

See my comment at the top. I wrote a program called Splunk Toolbox that gives you the ability to do:

Change ownership of any object
Rename apps
Search almost any object for specific information
Search all apps, searches, etc
Search python
Search MrSparkle
Edit lookup tables
Edit XML
Edit any .conf
Edit just about anything in Splunk

Lots more. this program is entering beta and I need testers. I've been a Splunk user ever since version 2.x. I spoke at .conf2014.

ken@esspc-llc.com

lvirden
Explorer

Thank you.

0 Karma

kmattern
Builder

email me at ken@esspc-llc.com. I've written a program that manages all kinds of things in Splunk that are either hard or impossible to do through the Splunk environment.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...