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 | What is broken 80% of the time by February?

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

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...