Edit or delete source types for Edge Processors
The source type configurations that Edge Processors use to break and merge incoming data are managed through the Splunk Cloud Platform deployment that’s connected to the Edge Processor tenant. However, before this ability to use source types from Splunk Cloud Platform became available, source types for Edge Processors were created manually using the Source types page in the Edge Processor service. The instructions on this page describe how to edit and delete source types that were manually created.
For information about how to work with source types that are managed through Splunk Cloud Platform, see Sync source types from Splunk Cloud Platform.
Edit a source type
You can modify the event breaking and merging configuration of a source type by completing the following steps.
- Navigate to the Source types page.
- In the row listing the source type that you want to modify, select the Actions icon (
) and select Edit.
- In the Name field, enter the exact name of the source type that you want to work with. The source type name must meet these requirements:
The name must be unique.
The name cannot be
splunk-edge-processor-metrics
orsplunk-edge-processor-log
. These are reserved for internal use only.
In the Line breaking field, specify the delimiter that indicates the end of one event and the start of another. If using a line break as the delimiter meets your requirements, then leave this field at the default value of
([\r\n]+)
. Otherwise, enter a different PCRE capture group that matches the delimiter.Note: This delimiter gets dropped from your data. It is treated as something that exists between events rather than something that is part of an event. For more information, see the description of theLINE_BREAKER
property in props.conf in the Splunk Enterprise Admin Manual.If your inbound data consists of multiline events, then do the following:
Select Merge lines into events.
In the Multiline event delimiter field, enter a PCRE expression that matches the start of each multiline event.
(Optional) To specify the maximum number of lines to include in a single multiline event, expand Advanced settings and enter your desired maximum number of lines in the Maximum lines per event field.
- (Optional) To confirm that your updated source type configuration works as expected, generate a preview that shows how the source type configuration breaks and merges inbound data streams into events. Do the following:
- Select the Edit Sample Data icon (
).
- In the Edit sample data dialog box, enter or upload sample data for generating the preview. Note: The sample data must be in the same format as the actual data that is associated with the source type. See Getting sample data for previewing data transformations for more information.
- Select Save.
- Select the Run To Preview Source Type icon (
) to generate the preview. Use the preview results to validate your source type configuration.
- Select the Edit Sample Data icon (
- Select Save source type. Then, select Save to continue and save your changes.
The Edge Processor service returns a message confirming that your changes are saved successfully.
If this source type is used by any pipelines that are already applied to Edge Processors, then you need to refresh your pipelines to make sure that they use the updated source type configuration. See Refresh a pipeline for more information.
Delete a source type
You can delete a source type from the system by completing the following steps.
- Navigate to the Source types page.
- In the row listing the source type that you want to modify, select the Actions icon (
) and select Delete.
- When prompted to confirm your choice, select Delete.
The Edge Processor service returns a message confirming that your source type was deleted successfully.