This documentation applies to the following versions of Splunk: 4.0 , 4.0.1 , 4.0.2 , 4.0.3 , 4.0.4 , 4.0.5 , 4.0.6
This topic describes how to create new users and change the properties (like password) of existing users.
When you create a user, Splunk automatically creates a role for that user as well. You can then edit that role to specify what access that user has to Splunk.
./splunk add user admin2 -password changeme2 -role admin -auth admin:changeme
./splunk edit user admin -password fflanda -role admin -auth admin:changeme
Note: Members of multiple roles inherit capabilities from the role with the loosest permissions.
Configure roles by editing authorize.conf. Roles are defined by lists of capabilities. You can also use roles to create fine-grained access controls by setting a search filter for each role.
Caution: Do not edit or delete any roles in $SPLUNK_HOME/etc/system/default/authorize.conf. This could break your admin capabilities. Edit this file in $SPLUNK_HOME/etc/system/local/, or your own custom application directory in $SPLUNK_HOME/etc/apps/. For more information on configuration files in general, see About configuration files.
Add the following attribute/value pairs to $SPLUNK_HOME/etc/system/local/authorize.conf.
[role_$ROLE_NAME] $CAPABILITY1 = enabled $CAPABILITY2 = enabled ... importRoles = $OTHER_ROLE srchFilter = $SEARCH_STRING
role_$ROLE_NAME:
security, compliance, ninja.
$CAPABILITY1:
importRoles = <role>:
<role>.
srchFilter = <search>:
srchTimeWin = <string>
Note: You must restart Splunk after making changes to authorize.conf. Otherwise, your new roles will not appear in the Role list.
The srchFilter/Search filter field can include any of the following search terms:
source=
host= and host tags
index= and index names
eventtype= and event type tags
sourcetype=
OR to use multiple terms, or AND to make searches more restrictive
Note: Members of multiple roles inherit capabilities from the role with the loosest permissions. In the case of search filters, if a user is assigned to roles with different search filters, they are all applied.
The search terms cannot include:
Once you've created a role in authorize.conf, map a user or users to it via Splunk Web.
authorize.conf will be listed here.
Important: If you change (and save) an existing user/group role LDAP mapping from within Splunk Web, all users currently logged in to Splunk Web will be automatically logged out of Splunk Web immediately and must log back in to proceed. This is done to ensure that any users who should no longer have access as a result of the role mapping change are indeed denied access.
This example creates the role Ninja, which inherits capabilities from the default roles User and Everybody. Ninja has almost the same capabilities as Power, except cannot create alerts (only saved searches). Also, Ninja is limited to searching on host=fflanda.
[role_Ninja] edit_save_search = enabled schedule_search = enabled edit_eventtype = enabled edit_role_search = enabled edit_local_search = enabled savesearch_tab = enabled edit_tags = enabled importRoles = User;Everybody srchFilter = host=fflanda
This list shows capabilities available for roles. Check authorize.conf for the most up-to-date version of this list. The Admin role has all the capabilities in this list.
[role_Admin]
edit_user = change user information in CLI/UI.
edit_search_server = gives you the ability to write any xml config file in $SPLUNK_HOME/etc.
delete_user = delete users in UI/CLI.
change_authentication = this allows you to save authentication settings.
bounce_authentication = reload authentication in the UI/CLI.
delete_by_keyword = access delete search operator.
license_tab = access license tab.
edit_alert_action = change alert actions.
edit_roles = change user mappings to roles.
edit_deployment_server = change deployment server settings.
edit_deployment_client = change deployment client settings.
indexes_edit = change index settings.
edit_input_defaults = change default input settings.
edit_monitor = change monitor input settings.
edit_scripted = change scripted input settings.
edit_splunktcp = set distributed data settings over tcp.
edit_splunktcp_ssl = set tcp ssl settings.
edit_tcp = change tcp input settings.
edit_udp = change udp input settings.
edit_server = change server settings in server.conf.
edit_web_settings = change the web.conf settings.
edit_forwarders = change settings on the forwarding side.
use_file_operator = use the file operator to search of your file system.
request_auth_token = get auth token for other users.
rest_apps_management = manage applications via the REST endpoint.
rest_properties_get = read REST services/properties.
rest_properties_set = write REST services/properties.
admin_all_objects = ability to administer all objects in the system (user objects, search jobs etc..)
importRoles = other roles from which this role imports capabilities
(the admin user imports from the Power and User roles).
srchFilter = restrictions on what Splunk objects this role can see or manipulate
(the admin user has no restrictions).