Splunk Enterprise

How to create a role to managge risky command

silverKi
Path Finder

I want to create a custom role to manage splunk risky commands. I looked for configuration files related to risky commands and found that it is related to web.conf command.conf file and I found that you can disable risky commands by setting [command] is_risky=false in command.conf file. What I want is to give a role to manage risky_command so that I can get different search results than other users. I wonder if it is possible to create such a role.

Tags (1)
0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@silverKi- As @richgalloway mentioned it is not possible to do it for particular role or user.

But you can disable risky for particular command or for all commands.

Reference document - https://docs.splunk.com/Documentation/Splunk/latest/Security/SPLsafeguards

 

I hope this helps!!!

0 Karma

silverKi
Path Finder

Thank you for your reply.. And I have one more curious things.

I mentioned you because I had additional questions. I would like to know which file each role's functionality maps to and which path it is. Currently, I have created a new role-Capability called manage_risky_commands and the operation method has not been mapped yet.


 manage_risky_commands.png

0 Karma

richgalloway
SplunkTrust
SplunkTrust

What you seek to do is not possible.  The contents of commands.conf apply to all roles.

Management of the commands.conf file is not controlled by role.  It is governed by whatever process your organization has for controlling CLI access to the Splunk server(s).

---
If this reply helps you, Karma would be appreciated.
0 Karma

silverKi
Path Finder

@richgalloway @VatsalJagani 

Thank you for your reply.. And I have one more curious things.

I mentioned you because I had additional questions. I would like to know which file each role's functionality maps to and which path it is. Currently, I have created a new role-Capability called manage_risky_commands and the operation method has not been mapped yet.
manage_risky_commands.png

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

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 in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...