The RapidDiag app assists the Splunk Administrator with collecting diagnostic information from one or more Splunk Enterprise instances simultaneously. What makes RapidDiag unique from the
diag CLI command is the ability to use distributed search to run diagnostic collections across multiple nodes, while leveraging both operating system (OS) provided utilities and Splunk Enterprise tools to collect troubleshooting information.
When should I use RapidDiag?
RapidDiag offers a way to collect troubleshooting data from OS provided utilities and Splunk Enterprise tools, and place the results into one file. It is designed to ease data collection tasks when working with Splunk Support on troubleshooting your Splunk platform instances.
What node do I run RapidDiag from?
The RapidDiag app requires distributed search access to other Splunk Enterprise instances. In a typical Splunk Enterprise environment, there are several roles that are configured to search other Splunk Enterprises instances:
- Monitoring Console: The monitoring console is typically configured with search access to the entire Splunk Enterprise deployment. Running a collection from the monitoring console provides access to the search tier, indexers or cluster peers, and management roles such as the cluster manager node.
- Manager node: The cluster manager node is configured with search access to the cluster peers. Running a collection from the cluster manager provides access to the cluster peers.
- Search Head: A search head is configured with search access to the indexers or cluster peers. Running a collection from a search head provides access to the indexers or cluster peers.
The RapidDiag app includes command line support (CLI) and help. You can use the command
splunk cmd rapidDiag -h to review the supported settings on the CLI. The RapidDiag CLI supports use on a single instance only, and cannot be used for distributed data collection.
There is no RapidDiag support for universal forwarders.
How do I access RapidDiag?
The RapidDiag UI is located in the Settings menu, under System > RapidDiag.
The RapidDiag app has several requirements:
- The RapidDiag app is included with Splunk Enterprise 8.1.1 and later.
- The RapidDiag app is available on Linux-based Splunk Enterprise installations only.
- A user must have the
get_diagcapability to access the RapidDiag UI.
Accessing the internal reference guide
The RapidDiag UI offers a reference guide in product. The Reference Guide tab provides details on folder paths used for common tools, OS tool dependancies, and Linux distribution compatibility. The Reference Guide also includes a dependency checker that verifies the OS utilities used in RapidDiag collections are available on the Splunk platform machines.
Verify the OS utilities are available
Use the dependency checker on the RapidDiag Reference Guide tab to verify that the OS utilities used in RapidDiag collections are available on your Splunk platform machines.
- Select a Splunk Enterprise role to run RapidDiag on.
- Log into SplunkWeb using the Splunk administrator credentials.
- On the Settings menu, go to System and click RapidDiag.
- Select the Reference Guide tab, and click Dependency Checker to verify the OS utilities are available on your machines.
The dependency check is also run on any Peer Nodes that are connected to the Splunk Enterprise role where RapidDiag is running.
- Review the status report:
- If you receive "No issues with utilities found," the Splunk Enterprise service account was able to access the OS utilities on the machines.
- If there are issues with some machines accessing the utilities, a table with the OS utility name and a status will appear. Under each OS utility name, the host machine name and a status message is displayed.
Using a task template
In RapidDiag, a task template is a series of data collection tasks bundled together and named for their troubleshooting use case. The data collection tasks define the OS utilities and Splunk Enterprise tools used to collect the data. For example, the "File reading" template will generate multiple data collection tasks using the utilities iostat, ps, strace, diag, and others.
A peer node is the Splunk Enterprise instance where you want to perform a data collection task. You must select a peer node before choosing a task template. If the node where you're running RapidDiag is configured to use distributed search across other Splunk Enterprise instances, you can select one or more peer nodes to run a task template on.
Monitoring a running task
The Task Manager tab in RapidDiag displays the active and historical task collection jobs. Once a collection is finished, you will see the output file path with a custom folder name used to store the data archive on the machine where the collection ran.
When a task collection is run on remote peer nodes, the data is stored on those nodes. RapidDiag does not move or copy the archive files to a central collection point. You must collect the archives from each peer node manually using the output file path reported in the completed task collection.
A troubleshooting example
Splunk Support has asked you to run the "Indexer health" template on all indexers to assist them in troubleshooting an issue.
- Select a Splunk Enterprise node to run RapidDiag on. In this case, a search head is ideal as it has distributed search configured to search all of your indexers.
- Log into SplunkWeb on the search head using the Splunk administrator credentials.
- On the Settings menu, go to System and click RapidDiag.
- (Optional) Select the Reference Guide tab, and click Dependency Checker to verify the OS utilities are available on your machines.
- On the Task Templates tab, select your indexers in the Peer Node dropdown.
- Choose the "Indexer Health" template. Select "Next."
- On the Review page, review the settings for the collectors.
- Select "Start Collecting."
- On the Task Manager tab, wait for the job status to change from "Collecting" to "Success."
- Copy the Output File path from the completed collection, and use it to copy the archive files from each indexer to a central location where you'll upload them to a support case.
Generate a diagnostic file
Anonymize data samples to send to Support
This documentation applies to the following versions of Splunk® Enterprise: 8.2.0, 8.2.1, 8.2.2