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.
Download topic as PDF
Drop Fields
Drop fields from a record. Use drop fields
to drop one or more fields from each record. If you want to drop an entire record, use filter
instead.
- Function Input
collection<record<R>>
- This function takes in collections of records with schema R.
- Function Output
collection<record<S>>
- This function outputs the same collection of records but with a different schema S.
Arguments
Argument | Input | Description | UI example |
---|---|---|---|
fields | collection<string> | The name of the fields you want to drop in your record. You can use wild card characters in the field names. You cannot escape wild card characters. Dropping fields that have * in their name can produce unexpected behavior and should be avoided. |
host |
DSL example
drop-fields (records, "host", "source");
Last modified on 31 October, 2019
PREVIOUS Break Events |
NEXT Eval |
This documentation applies to the following versions of Splunk® Data Stream Processor: 1.0.0
Feedback submitted, thanks!