Get started with SCloud
SCloud is a command-line tool to make API calls to the Data Stream Processor. You can use
scloud to interact with APIs such as the Ingest REST API.
~/.scloud file to point to your on-premises DSP instance:
DSP_HOSTto the IP address or hostname of your master node.
- Run the following script by copy and pasting the following text in the command line.
cat << EOF > ~/.scloud env = "prod" host-url = "https://$DSP_HOST:31000" auth-url = "https://$DSP_HOST:31000" tenant = "default" username = "dsp-admin" insecure = "true" EOF
Verify that the SCloud tool has been configured properly
- From the command line, type
./scloud loginWhen prompted, use the
dsp-adminpassword printed during the DSP installation. If needed, you can get the username and password again by typing
sudo ./print-loginon one of your nodes.
- From the DSP homepage, click on Build Pipeline and select the Splunk Firehose to Splunk Index template.
- Click Start Preview.
- Try ingesting an event.
./scloud ingest post-events -format raw <<< 'test'
The syntax for the Splunk Cloud CLI is as follows:
./scloud [-u <username>] [-p <password>] [-tenant <tenant>] [-no-prompt]<command> <subcommand> [params]
scloud has the following additional commands. For subcommands and more information, run
./scloud help or
./scloud <command> help.
Manage users and admins
Kafka encryption and authentication using SSL
This documentation applies to the following versions of Splunk® Data Stream Processor: 1.0.1