Splunk® Data Stream Processor

Function Reference

On April 3, 2023, Splunk Data Stream Processor will reach 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.
This documentation does not apply to the most recent version of Splunk® Data Stream Processor. For documentation on the most recent version, go to the latest release.

Break Events

Break grouped events received from a forwarder into multiple events using a valid regular expression as the delimiter.

Function Input
collection<record<R>>
This function takes in collections of records with schema R.
Function Output
collection<record<R>>

This function outputs a collection of records with schema R.

Arguments

Argument Input Description UI example
content expression<string> An expression to get the contents of the field to be broken. get("body")
output string Optional. The name of the output field in the new event (defaults to body if it is not specified). new_name
delimiter regex A regex delimiter used to break events. \n


DSL example

Break events using a new line as a delimiter:

break-events(input, get("body"), /(\n)/);
Last modified on 02 January, 2020
Bin   Drop Fields

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


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