Splunk Search

Is there a way to disable the use of the splunk clean command?

ctwbear
New Member

We would like to have the splunk clean command unavailable to our Splunk administrators. The other idea would be to tie it to a specific role like the "delete" search command and the "can_delete" role.

Tags (3)
0 Karma

changux
Builder

Hi.
What OS do you have? Under linux, you need to use sudo in sudoers file.

Cmnd_Alias SPLUNK = /srv/splunk/bin/splunk restart ! /srv/splunk/bin/splunk clean !
user ALL=(root) NOPASSWD: SPLUNK

You can specify other arguments that are valid in the same Cmnd_Alias line.

Try and tell us about it.

0 Karma

changux
Builder

Check out the sudoers man page:

http://www.sudo.ws/man/1.8.14/sudoers.man.html

0 Karma
Get Updates on the Splunk Community!

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...