Splunk® Data Stream Processor

Function Reference

Acrobat logo Download manual as PDF

Acrobat logo Download topic as PDF

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
PREVIOUS
Where
  NEXT
Write thru KV Store

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