splunk

Interface with the Splunk API.

Important

This module requires the general Splunk setup.

saltext.splunk.modules.splunk.list_users(profile='splunk')[source]

List all users in the splunk DB

CLI Example:

salt myminion splunk.list_users
saltext.splunk.modules.splunk.get_user(email, profile='splunk', **kwargs)[source]

Get a splunk user by name/email

CLI Example:

salt myminion splunk.get_user 'user@example.com' user_details=false
salt myminion splunk.get_user 'user@example.com' user_details=true
saltext.splunk.modules.splunk.create_user(email, profile='splunk', **kwargs)[source]

create a splunk user by name/email

CLI Example:

salt myminion splunk.create_user user@example.com roles=['user'] realname="Test User" name=testuser
saltext.splunk.modules.splunk.update_user(email, profile='splunk', **kwargs)[source]

Create a splunk user by email

CLI Example:

salt myminion splunk.update_user example@domain.com roles=['user'] realname="Test User"
saltext.splunk.modules.splunk.delete_user(email, profile='splunk')[source]

Delete a splunk user by email

CLI Example:

salt myminion splunk_user.delete 'user@example.com'