icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

We are working on something new...

A Fresh New Splunkbase
We are designing a New Splunkbase to improve search and discoverability of apps. Check out our new and improved features like Categories and Collections. New Splunkbase is currently in preview mode, as it is under active development. We welcome you to navigate New Splunkbase and give us feedback.

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading Restart It
SHA256 checksum (restart-it_203.tgz) ffea47cc7846161969fea658e8720d6a2679f9ea9f7cebbc4b4b8891f884339a SHA256 checksum (restart-it_202.tgz) fdf1edea7fe8a5c06bd844d65c7be7347943f97969153b45b9b796d3558eaaf6 SHA256 checksum (restart-it_201.tgz) a9332db9a90b76dd8c7ce201ff693f59cb99a5864f07e53c5805e8e57d1d07aa SHA256 checksum (restart-it_200.tgz) 227a1f8951c88ce780900b906524181b070f2aed247516ef75ab521df453d8ac
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

splunk

Restart It

Splunk Cloud
Overview
Details
TA-restart_it provides a custom command to enable the restarting of inputs via a Splunk search.

IMPORTANT

USERS RUNNING THIS COMMAND MUST HAVE THE admin_all_object AND rest_apps_management ROLE CAPABILITIES.

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).

Command Syntax

            | restartinput app=<app> type=<type> input=<input>/script=<script_name>

Description

The restartinput command uses the REST API to restart a specified input or script in an app.

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.

Examples

            | 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.

Restartable input types

  • http
  • monitor
  • registry
  • script
  • tcp/cooked
  • tcp/raw
  • tcp/ssl
  • udp
  • win-wmi-collections

A note on modular inputs

Modular input types are often custom. To construct a restart query for a modular input:
Search
| rest /servicesNS/-/-/data/inputs | table title, id
to identify the type (title in the results) value to enter in the command.

Search
| 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

Developer Support

Contact: splunk-app@hurricanelabs.com
Hours: 9 AM - 5 PM Eastern
Closed all major US holidays.

Release Notes

Version 2.0.3
Jan. 31, 2025
  • Vetting changes
Version 2.0.2
Sept. 25, 2024

Updates Splunk Python SDK to 2.0.2

Version 2.0.1
April 29, 2024

Updates splunklib to latest version.

Version 2.0.0
Nov. 6, 2023

Removes Add-on Builder dependencies


Subscribe Share

Are you a developer?

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.

Follow Us:
Splunk, Splunk>,Turn Data Into Doing, Data-to-Everything, and D2E are trademarks or registered trademarks of Splunk LLC in the United States and other countries. All other brand names,product names,or trademarks belong to their respective owners.