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
Get Updates on the Splunk Community!

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureThursday, March 27, 2025  |  11AM PST / 2PM EST | Register NowStep boldly ...

Splunk AppDynamics with Cisco Secure Application

Web applications unfortunately present a target rich environment for security vulnerabilities and attacks. ...

New Splunk Innovations Enhance Performance and Accelerate Troubleshooting

Splunk is excited to announce new releases that empower ITOps and engineering teams to stay ahead in ever ...