Splunk® Data Stream Processor

Function Reference

On April 3, 2023, Splunk Data Stream Processor reached its end of sale, and will reach its end of life on February 28, 2025. If you are an existing DSP customer, please reach out to your account team for more information.

All DSP releases prior to DSP 1.4.0 use Gravity, a Kubernetes orchestrator, which has been announced end-of-life. We have replaced Gravity with an alternative component in DSP 1.4.0. Therefore, we will no longer provide support for versions of DSP prior to DSP 1.4.0 after July 1, 2023. We advise all of our customers to upgrade to DSP 1.4.0 in order to continue to receive full product support from Splunk.


This topic describes how to use the thru command in the Splunk Data Stream Processor.


The Thru command is one of three special SPL2 commands, along with from and into, that indicate how a DSP function interacts with external data. Use the Thru command in conjunction with "Write Thru" functions. Write Thru functions are a type of streaming function that sends data to an external destination like most sink functions but also sends data to the next downstream function on the pipeline. Currently, the only DSP function that works with Thru is the Write thru KV Store function. You only need to explicitly invoke Thru with the Write Thru functions in the SPL2 builder.

SPL2 example

...| thru kvstore_lookup_sink(lookup_dataset: "lookup_table", predicate: isnotnull('mymeta'), lookup_fields: ["id", "body", "metadata", "foo"], event_fields: ["id", "body", "mymeta", "foo"], mode: "append")  | ...;
Last modified on 28 September, 2020
Where   Write thru KV Store

This documentation applies to the following versions of Splunk® Data Stream Processor: 1.2.0, 1.2.1-patch02, 1.2.1, 1.2.2-patch02, 1.2.4, 1.2.5, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4

Was this topic useful?

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