Splunk Add-on SDK formerly UCC is a build and code generation framework
Project description
splunk-add-on-ucc-framework
A framework to generate Splunk Add-ons. It includes UI, Rest handler, Modular input, Oauth, Alert action templates.
What is UCC?
UCC is Universal Configuration Console. It is a service for Generating Splunk Add-ons which is easily customizable and flexible. It is helpful to control the activity by using hooks and other functionalities. UCC provides basic UI template for creating Addon's UI.
Features
- Generate ucc based addons for your Splunk Technology Add-ons
Requirements
- Addon package and globalConfig.json file
Note: You may refer the globalConfig.json file here
Installation
You can install "splunk-add-on-ucc-framework" via pip
from PyPI
:
$ pip3 install splunk-add-on-ucc-framework
How to use
To build the ucc based addon follow the below steps:
- Install the
splunk-add-on-ucc-framework
viapip3
- Run the
ucc-gen
command - Make sure that
package
directory andglobalConfig.json
file present in the directory - The final addon package will be generated, at
output
directory.
Workflow
By the running the ucc-gen
command, the following steps came in action:
- Cleaning out the
output
directory - Retrieve the package ID of addon
- Copy UCC template directory under
output/<package_ID>
directory - Copy
globalConfig.json
file tooutput/<package_ID>/appserver/static/js/build
directory - Collect and install Addon's Requirements into
output/<package_ID>/lib
directory of addon's package - For the addon's requirements, packages were installed according to following table.
File Name | Description | Output directory in ucc build |
---|---|---|
lib/requirements.txt | Python2/python3 compatible packages | output/<package_ID>/lib |
lib/py2/requirements.txt | Only Python2 compatible packages | output/<package_ID>/lib/py2 |
lib/py3/requirements.txt | Only python3 compatible packages | output/<package_ID>/lib/py3 |
- Replace tokens in views
- Copy addon's
package/*
tooutput/<package_ID>/*
directory
Params
splunk-add-on-ucc-framework supports the following params:
Name | Description |
---|---|
source | Folder containing the app.manifest and app source |
config | Path to the configuration file, Defaults to GlobalConfig.json in the parent directory of source provided |
ta-version | Optional override Current version of TA, Default version is version specified in globalConfig.json a Splunkbase compatible version of SEMVER will be used by default |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for splunk_add_on_ucc_framework-4.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55b880aac9d327a118374fd07957572d51d5cbf26fd8d5a66bc2d25fbe26c977 |
|
MD5 | 6d46e02ad23455053674ae076b0cb2e0 |
|
BLAKE2b-256 | 4be5d7b27a3c0098ca370d3f8313414c8fbbb872bde4652c19ba0a8e1c19787e |
Hashes for splunk_add_on_ucc_framework-4.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4817f2f176c35aa67893b8dd5f90a2991a57ae01019dfd8f2412593e561c5d9 |
|
MD5 | eaae79d0052069cb79f597f3e0bb8499 |
|
BLAKE2b-256 | 4d5617c9541ddf1664a1b5a455427e6f43646c670f566442a6448466edb1e56e |