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.
Configuration
Configure your ~/.scloud
file to point to your on-premises DSP instance:
- Set
DSP_HOST
to the IP address or hostname of your master node.DSP_HOST=<IP_Address>
- 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 login
When prompted, use thedsp-admin
password printed during the DSP installation. If needed, you can get the username and password again by typingsudo ./print-login
on 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'
Additional commands
The syntax for the SCloud 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
.
Command | Description |
---|---|
Identity | The identity commands create and manage users and admins, manage tenant memberships, and manage the access to tenant resources granted by the definition of groups, roles, and their corresponding permissions.
|
Streams | The streams command creates and manages Splunk data stream pipelines.
|
Forwarders | The forwarders command interacts with the Splunk forwarder service APIs to create, delete, and view certificates that the forwarders use. It does not control forwarders.
|
Ingest | The ingest command posts event and metric data to the ingest service.
|
Manage users and admins | Kafka encryption and authentication using SSL |
This documentation applies to the following versions of Splunk® Data Stream Processor: 1.0.0
Feedback submitted, thanks!