Splunk® Data Stream Processor

Function Reference

DSP 1.2.1 is impacted by the CVE-2021-44228 and CVE-2021-45046 security vulnerabilities from Apache Log4j. To fix these vulnerabilities, you must upgrade to DSP 1.2.4. See Upgrade the Splunk Data Stream Processor to 1.2.4 for upgrade instructions.

On October 30, 2022, all 1.2.x versions of the Splunk Data Stream Processor will reach its end of support date. See the Splunk Software Support Policy for details.

Thru

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

Description

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, 1.4.5, 1.4.6


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