On October 30, 2022, all 1.2.x versions of the Splunk Data Stream Processor will reach its end of support date. See the Splunk Software Support Policy for details.
Upgrade a plugin from 1.1.0 to 1.2.0
If you upgraded from the 1.1.0 to DSP 1.2.0, follow these instructions to rebuild your plugin with the latest version of the SDK and reupload the plugin for use.
Prerequisites
- Review What's new in the SDK. The latest version of the SDK includes a backwards-incompatible changes. If any of these apply to you, you need to make the required changes to your code before upgrading.
- upgraded to version 1.2.0.
Steps
- Open a command prompt at the root of the plugin repository and fetch the
release-1.2
branch from the remote server.git fetch origin release-1.2
- Checkout the
release-1.2
branch.git checkout release-1.2
- Rebuild the plugin.
./gradlew my-plugin-name:build
- Upload the built JAR to the .
./gradlew uploadPlugin -PPLUGIN_ID=<id-from-registration-response> -PPLUGIN_MODULE=my-plugin-name
- Refresh the UI.
You can now use functions included in your plugin in the latest version of the .
Troubleshoot the plugin upgrade
If you were unable to checkout the latest version of the SDK, complete the following steps.
- Clone the repository again: Plugins SDK.
- Checkout
release-1.2
in the new clone. - Copy the top-level folder containing your plugin code from the 1.1 repository into the newly cloned 1.2 repository.
- Add
include '<my-plugin-name>'
to thesettings.gradle
file.#!/usr/bin/env groovy // Copyright (c) 2019-2019 Splunk, Inc. All rights reserved. include 'dsp-plugin-examples' include 'dsp-plugin-functions' include 'my-plugin-name'
- Rebuild the plugin.
./gradlew my-plugin-name:build
- Upload the built JAR to the .
./gradlew uploadPlugin -PPLUGIN_ID=<id-from-registration-response> -PPLUGIN_MODULE=my-plugin-name
You can now use functions included in your plugin in the latest version of the .
Create custom functions with the SDK | Troubleshoot the |
This documentation applies to the following versions of Splunk® Data Stream Processor: 1.2.0, 1.2.1-patch02
Feedback submitted, thanks!