Application Framework Reference

App Server Utilities API

restart_splunk()

The restart_splunk() function restarts the Splunk splunkd and splunkweb processes.

Synopsis

results = restart_splunk()

Return Value

Undefined

Raises

SplunkRestartException

Error encountered restarting Splunk.

Example

from splunk.appserver.mrsparkle.lib import util 
util.restart_splunk()