These are very powerful permissions, and should be restricted to admin accounts.
This app logs restart information by default, to change this go into the configuration menu and select a higher logging level (WARN, CRITICAL).
| restartinput app=<app> type=<type> input=<input>/script=<script_name>
restartinput command uses the REST API to restart a specified
script in an
This is useful if an input regularly needs to be restarted, as Splunk's scheduler can be used to automatically restart an input, with no command line access or scripting required.
| restartinput app=TA-Your_App type=script script=myScript.sh
This example restarts the script myScript found in the app TA-Your_App.
| restartinput app=TA-Your_App type=monitor input=lookup.csv
This example restarts a monitored input called lookup.csv from the app context TA-Your_App.
Modular input types are often custom. To construct a restart query for a modular input:
| rest /servicesNS/-/-/data/inputs | table title, id
to identify the type (title in the results) value to enter in the command.
| rest /servicesNS/-/<app>/configs/conf-inputs | search title="*<input type from previous search>*" | table title
to identify the input value. These results come directly from your server's input.conf file.
As an example, if you have an app titled TA-Your_App with an input type of your_app and a input titled get_hosts your command would be
| restartinput app=TA-Your_App type=your_app input=get_hosts
Hours: 9 AM - 5 PM Eastern
Closed all major US holidays.
As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps from Splunk, our partners and our community. Find an app for most any data source and user need, or simply create your own with help from our developer portal.