Splunk® Data Stream Processor

Use the Data Stream Processor

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.

Add a sourcetype

You can set a sourcetype using an eval function.

If you do not add a sourcetype to your data and you send your data to Splunk Enterprise, your data is automatically indexed with the default httpevent sourcetype.

Set a sourcetype manually

Set a sourcetype on your data with the Eval streaming function. The Eval function adds or updates an existing field to your record.

  1. From the Data Pipelines editor, click on the + icon and add the Eval function to your pipeline.
  2. In the Eval function, type the following. This sets your source_type field to buttercup_sales.
    source_type="buttercup_sales"
    
  3. With your Eval function highlighted, click Start Preview and send some data in to verify that the expression is working as expected.
Last modified on 28 September, 2020
Aggregate records in a pipeline   Adding, removing, and updating fields

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


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