Splunk® Data Stream Processor

Function Reference

Acrobat logo Download manual as PDF

Acrobat logo Download topic as PDF

Send data to a Splunk index (Default for Environment)

This function sends data to the preconfigured Splunk Enterprise index using the Splunk HTTP Event Collector (HEC), which requires events to be formatted in a specific way. To use this function, your tenant administrator must have configured a default Splunk Enterprise instance during installation. See Cluster configuration options in the Install and Administer the Data Stream Processor manual.

Function input schema

See Connecting Splunk indexes to your DSP pipeline.

Required arguments

Syntax: ""
Description: Set this to "".
Example: ""
Syntax: expression<string>
Description: The Splunk index you want to send data to. Defaults to main.
Example: "main"

SPL2 example

You can write the function by providing the arguments in this exact order.

...| into index("", "main");

Alternatively, you can use named arguments to declare the arguments in any order and leave out optional arguments you don't want to declare. All unprovided arguments use their default values. See SPL2 syntax for more details. The following example provides the arguments in an arbitrary order.

...| into index(dataset: "main", module: "");
Last modified on 22 October, 2020
Send data to a Splunk index
Send data to Amazon Kinesis Data Streams

This documentation applies to the following versions of Splunk® Data Stream Processor: 1.2.0

Was this documentation topic helpful?

You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters